clean up sessions

pull/215/head
v2ray 2016-06-18 21:18:21 +02:00
parent 8cd32a8267
commit aa38488712
1 changed files with 3 additions and 0 deletions

View File

@ -121,6 +121,9 @@ func (this *Listener) Close() error {
this.running = false this.running = false
close(this.awaitingConns) close(this.awaitingConns)
for _, conn := range this.sessions {
go conn.Terminate()
}
this.hub.Close() this.hub.Close()
return nil return nil