close all sessions after main connection ends

pull/432/head
Darien Raymond 8 years ago
parent 32842bc14b
commit 947492a71c
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -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…
Cancel
Save