forked from TrueCloudLab/neoneo-go
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,
|
// 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() {
|
func (s *Server) Shutdown() {
|
||||||
if !s.started.CompareAndSwap(true, false) {
|
if !s.started.CompareAndSwap(true, false) {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Reference in a new issue