network: fix typo
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
parent
775c56e87e
commit
9b540770cd
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ func (s *Server) Start() {
|
|||
}
|
||||
|
||||
// Shutdown disconnects all peers and stops listening. Calling it twice is a no-op,
|
||||
// once stopped the same intance of the Server can't be started again by calling Start.
|
||||
// once stopped the same instance of the Server can't be started again by calling Start.
|
||||
func (s *Server) Shutdown() {
|
||||
if !s.started.CompareAndSwap(true, false) {
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue