5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-10 06:20:26 +00:00

Update handler behavior

This commit is contained in:
Neil Alexander 2019-01-05 01:02:22 +00:00
parent 1170ea9e98
commit 90366dd853
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -102,7 +102,10 @@ func (ai *awdlInterface) handler() {
ai.peer.handlePacket(r) ai.peer.handlePacket(r)
case <-ai.shutdown: case <-ai.shutdown:
return return
default: case p := <-ai.peer.linkOut:
ai.send <- p
ai.awdl.core.switchTable.idleIn <- ai.peer.port
continue
} }
} }
} }