mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
close all sessions after main connection ends
This commit is contained in:
@@ -271,6 +271,15 @@ func (m *Client) fetchOutput() {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// Close all downlinks
|
||||
m.access.RLock()
|
||||
for _, s := range m.sessions {
|
||||
s.closeUplink()
|
||||
s.closeDownlink()
|
||||
s.output.CloseError()
|
||||
}
|
||||
m.access.RUnlock()
|
||||
}
|
||||
|
||||
type Server struct {
|
||||
|
||||
Reference in New Issue
Block a user