forked from quic-go/quic-go
Merge pull request #2115 from lucas-clemente/simplify-server-shutdown
simplify server shutdown
This commit is contained in:
@@ -117,7 +117,6 @@ func (h *packetHandlerMap) CloseServer() {
|
||||
go func(id string, handler packetHandler) {
|
||||
// session.Close() blocks until the CONNECTION_CLOSE has been sent and the run-loop has stopped
|
||||
_ = handler.Close()
|
||||
h.retireByConnectionIDAsString(id)
|
||||
wg.Done()
|
||||
}(id, handler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user