Merge pull request #681 from unistack-org/fix_wg
fix panic: negative WaitGroup counter
This commit is contained in:
commit
ac2a5a04a2
@ -278,16 +278,13 @@ func (s *rpcServer) ServeConn(sock transport.Socket) {
|
||||
delete(sockets, id)
|
||||
mtx.Unlock()
|
||||
|
||||
// once done serving signal we're done
|
||||
// signal we're done
|
||||
if s.wg != nil {
|
||||
s.wg.Done()
|
||||
}
|
||||
|
||||
}(id, psock)
|
||||
|
||||
// signal we're done
|
||||
if s.wg != nil {
|
||||
s.wg.Done()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user