From 5034cb2708c2eaf671e20989e0a719ce0d7ff901 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Wed, 4 Sep 2019 13:58:07 +0700 Subject: [PATCH] simplify closing of server session when the server is closed --- packet_handler_map.go | 1 - 1 file changed, 1 deletion(-) diff --git a/packet_handler_map.go b/packet_handler_map.go index 57a77f7ad..2e8d2e77c 100644 --- a/packet_handler_map.go +++ b/packet_handler_map.go @@ -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) }