mirror of
https://github.com/soypat/lneto.git
synced 2026-08-28 02:19:04 +00:00
fix #31 by maintaining conns on listener encapsulate no-op
This commit is contained in:
@@ -170,6 +170,9 @@ func (listener *Listener) Encapsulate(carrierData []byte, offsetToIP, offsetToFr
|
|||||||
err = nil
|
err = nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if n == 0 {
|
||||||
|
listener.maintainConns()
|
||||||
|
}
|
||||||
return n, err
|
return n, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user