mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
fix dial bug
This commit is contained in:
parent
ab59129557
commit
c97dd4ad28
2 changed files with 21 additions and 19 deletions
|
@ -252,7 +252,7 @@ const (
|
|||
// notify the intf that we're currently sending
|
||||
func (intf *linkInterface) notifySending(size int, isLinkTraffic bool) {
|
||||
intf.RecvFrom(nil, func() {
|
||||
if !isLinkTraffic && size > 0 {
|
||||
if !isLinkTraffic {
|
||||
intf.inSwitch = false
|
||||
}
|
||||
intf.sendTimer = time.AfterFunc(sendBlockedTime, intf.notifyBlockedSend)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue