summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--device/receive.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/device/receive.go b/device/receive.go
index e9cf2bc..4b6f278 100644
--- a/device/receive.go
+++ b/device/receive.go
@@ -199,6 +199,8 @@ func (device *Device) RoutineReceiveIncoming(IP int, bind conn.Bind) {
if device.addToInboundAndDecryptionQueues(peer.queue.inbound, device.queue.decryption, elem) {
buffer = device.GetMessageBuffer()
}
+ } else {
+ device.PutInboundElement(elem)
}
peer.queue.RUnlock()