summaryrefslogtreecommitdiffhomepage
path: root/src/uapi.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2018-01-04 14:24:14 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2018-01-04 14:24:14 +0100
commit9360bac63290d7869c07c0d1ba40f3f34fd39b83 (patch)
tree458d8349b53eb9b6a9f9d0fdd364a43ac10b96c5 /src/uapi.go
parentd73f960aab86b9a12b0b7d18aa80ce1d4f130695 (diff)
Revert "Peer timer teardown"
This reverts commit d73f960aab86b9a12b0b7d18aa80ce1d4f130695. Problems with deadlocking arises due to orphaned packets in per-peer queues. Additional work on this issue continues in seperate branch.
Diffstat (limited to 'src/uapi.go')
-rw-r--r--src/uapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uapi.go b/src/uapi.go
index a67bff1..155f483 100644
--- a/src/uapi.go
+++ b/src/uapi.go
@@ -296,7 +296,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
logError.Println("Failed to get tun device status:", err)
return &IPCError{Code: ipcErrorIO}
}
- if device.isUp.Get() && !dummy {
+ if device.tun.isUp.Get() && !dummy {
peer.SendKeepAlive()
}
}