diff options
Diffstat (limited to 'device/receive.go')
-rw-r--r-- | device/receive.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/receive.go b/device/receive.go index 21d9dbc..c6a28f7 100644 --- a/device/receive.go +++ b/device/receive.go @@ -474,7 +474,7 @@ func (peer *Peer) RoutineSequentialReceiver() { } _, err = device.tun.device.Write(elem.buffer[:MessageTransportOffsetContent+len(elem.packet)], MessageTransportOffsetContent) - if err != nil && !device.isClosed.Get() { + if err != nil && !device.isClosed() { device.log.Errorf("Failed to write packet to TUN device: %v", err) } if len(peer.queue.inbound) == 0 { |