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