delete unused connections from the multiplexer

This commit is contained in:
Jan Rüth
2019-01-08 10:43:20 +01:00
committed by Marten Seemann
parent 6fbe8d563e
commit 1a0aa50471
4 changed files with 37 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ func (h *packetHandlerMap) close(e error) error {
}
h.mutex.Unlock()
wg.Wait()
return nil
return getMultiplexer().RemoveConn(h.conn)
}
func (h *packetHandlerMap) listen() {