mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
clean up sessions
This commit is contained in:
parent
8cd32a8267
commit
aa38488712
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user