fix dead lock

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

@ -42,7 +42,7 @@ func (s *session) closeUplink() {
allDone = s.uplinkClosed && s.downlinkClosed allDone = s.uplinkClosed && s.downlinkClosed
s.Unlock() s.Unlock()
if allDone { if allDone {
s.parent.remove(s.id) go s.parent.remove(s.id)
} }
} }
@ -53,7 +53,7 @@ func (s *session) closeDownlink() {
allDone = s.uplinkClosed && s.downlinkClosed allDone = s.uplinkClosed && s.downlinkClosed
s.Unlock() s.Unlock()
if allDone { if allDone {
s.parent.remove(s.id) go s.parent.remove(s.id)
} }
} }

Loading…
Cancel
Save