mirror of https://github.com/v2ray/v2ray-core
close all sessions after main connection ends
parent
32842bc14b
commit
947492a71c
|
@ -271,6 +271,15 @@ func (m *Client) fetchOutput() {
|
||||||
break
|
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 {
|
type Server struct {
|
||||||
|
|
Loading…
Reference in New Issue