1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-02 22:21:19 +00:00

clean up sessions

This commit is contained in:
v2ray 2016-06-18 21:18:21 +02:00
parent 8cd32a8267
commit aa38488712

View File

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