mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 21:10:29 +00:00
fix debug builds
This commit is contained in:
parent
c573170886
commit
8c7e9ec7c0
@ -571,7 +571,9 @@ func DEBUG_simLinkPeers(p, q *peer) {
|
||||
continue
|
||||
case packet := <-send:
|
||||
packets = append(packets, packet)
|
||||
source.core.switchTable.idleIn <- source.port
|
||||
<-source.core.switchTable.SyncExec(func() {
|
||||
source.core.switchTable._idleIn(source.port)
|
||||
})
|
||||
continue
|
||||
default:
|
||||
}
|
||||
@ -585,15 +587,21 @@ func DEBUG_simLinkPeers(p, q *peer) {
|
||||
packets = append(packets, packet)
|
||||
case packet := <-send:
|
||||
packets = append(packets, packet)
|
||||
source.core.switchTable.idleIn <- source.port
|
||||
<-source.core.switchTable.SyncExec(func() {
|
||||
source.core.switchTable._idleIn(source.port)
|
||||
})
|
||||
}
|
||||
}
|
||||
}()
|
||||
}
|
||||
goWorkers(p, q)
|
||||
goWorkers(q, p)
|
||||
p.core.switchTable.idleIn <- p.port
|
||||
q.core.switchTable.idleIn <- q.port
|
||||
<-p.core.switchTable.SyncExec(func() {
|
||||
p.core.switchTable._idleIn(p.port)
|
||||
})
|
||||
<-q.core.switchTable.SyncExec(func() {
|
||||
q.core.switchTable._idleIn(q.port)
|
||||
})
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user