1
0
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:
Darien Raymond
2017-04-16 13:24:02 +02:00
parent d6988f1a63
commit e064ce65c8
2 changed files with 7 additions and 3 deletions

View File

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