1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-07-12 22:41:07 +02:00

Merge pull request #681 from unistack-org/fix_wg

fix panic: negative WaitGroup counter
This commit is contained in:
Asim Aslam
2019-08-19 12:06:45 +01:00
committed by GitHub

View File

@ -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()
}
}
}