simplify closing of server session when the server is closed

This commit is contained in:
Marten Seemann
2019-09-04 13:58:07 +07:00
parent d1489e5045
commit 5034cb2708

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