1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-25 17:05:23 +00:00

close all sessions after main connection ends

This commit is contained in:
Darien Raymond 2017-04-05 11:02:49 +02:00
parent 32842bc14b
commit 947492a71c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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 {