Merge pull request #2115 from lucas-clemente/simplify-server-shutdown

simplify server shutdown
This commit is contained in:
Marten Seemann
2019-09-05 15:01:38 +07:00
committed by GitHub

View File

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