Refactor timers.go
This commit is contained in:
parent
479a6f240e
commit
02ce67294c
8 changed files with 258 additions and 172 deletions
|
|
@ -482,7 +482,8 @@ func (peer *Peer) RoutineSequentialReceiver() {
|
|||
for {
|
||||
|
||||
select {
|
||||
case <-peer.signal.stop:
|
||||
|
||||
case <-peer.signal.stop.Wait():
|
||||
logDebug.Println("Routine, sequential receiver, stopped for peer", peer.id)
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue