From aa38488712014e3c5006993c427ecc8732321a8e Mon Sep 17 00:00:00 2001 From: v2ray Date: Sat, 18 Jun 2016 21:18:21 +0200 Subject: [PATCH] clean up sessions --- transport/internet/kcp/listener.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/transport/internet/kcp/listener.go b/transport/internet/kcp/listener.go index 1a173d7c9..494468cfd 100644 --- a/transport/internet/kcp/listener.go +++ b/transport/internet/kcp/listener.go @@ -121,6 +121,9 @@ func (this *Listener) Close() error { this.running = false close(this.awaitingConns) + for _, conn := range this.sessions { + go conn.Terminate() + } this.hub.Close() return nil