mirror of https://github.com/v2ray/v2ray-core
clean up sessions
parent
8cd32a8267
commit
aa38488712
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue