summaryrefslogtreecommitdiffhomepage
path: root/device/send.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/send.go')
-rw-r--r--device/send.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/send.go b/device/send.go
index cb1607b..a437cf1 100644
--- a/device/send.go
+++ b/device/send.go
@@ -228,7 +228,7 @@ func (device *Device) RoutineReadFromTUN() {
if err != nil {
if !device.isClosed() {
device.log.Errorf("Failed to read packet from TUN device: %v", err)
- device.Close()
+ go device.Close()
}
device.PutMessageBuffer(elem.buffer)
device.PutOutboundElement(elem)