mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
fix deadlock from use of phony.Block by actors when ckr is enabled
This commit is contained in:
parent
6ddb0f93f3
commit
b2922189b8
2 changed files with 9 additions and 13 deletions
|
@ -31,7 +31,7 @@ func (s *tunConn) close() {
|
|||
}
|
||||
|
||||
func (s *tunConn) _close_from_tun() {
|
||||
s.conn.Close()
|
||||
go s.conn.Close() // Just in case it blocks on actor operations
|
||||
delete(s.tun.addrToConn, s.addr)
|
||||
delete(s.tun.subnetToConn, s.snet)
|
||||
func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue