mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-05 16:55:27 -05:00
handle error properly
This commit is contained in:
@@ -97,8 +97,8 @@ func (m *SessionManager) Close() {
|
||||
m.closed = true
|
||||
|
||||
for _, s := range m.sessions {
|
||||
s.input.CloseError()
|
||||
s.output.CloseError()
|
||||
s.input.Close()
|
||||
s.output.Close()
|
||||
}
|
||||
|
||||
m.sessions = make(map[uint16]*Session)
|
||||
|
||||
Reference in New Issue
Block a user