mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
fix dead lock
This commit is contained in:
parent
947492a71c
commit
0a15bceb55
@ -42,7 +42,7 @@ func (s *session) closeUplink() {
|
||||
allDone = s.uplinkClosed && s.downlinkClosed
|
||||
s.Unlock()
|
||||
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
|
||||
s.Unlock()
|
||||
if allDone {
|
||||
s.parent.remove(s.id)
|
||||
go s.parent.remove(s.id)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user