mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
more peer migration
This commit is contained in:
parent
775fb535dc
commit
88161009e9
3 changed files with 11 additions and 7 deletions
|
@ -387,7 +387,8 @@ func (intf *linkInterface) handler() error {
|
|||
for {
|
||||
msg, err := intf.msgIO.readMsg()
|
||||
if len(msg) > 0 {
|
||||
intf.peer.handlePacket(msg)
|
||||
// TODO rewrite this if the link becomes an actor
|
||||
<-intf.peer.SyncExec(func() { intf.peer._handlePacket(msg) })
|
||||
}
|
||||
if err != nil {
|
||||
if err != io.EOF {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue