summaryrefslogtreecommitdiffhomepage
path: root/src/uapi.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-11-30 23:22:40 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-11-30 23:22:40 +0100
commit02ce67294cd28bde9d61924fe6d0365638cc924e (patch)
treea30445a4e15e6ab651525e9dd40ba6399e00d1d8 /src/uapi.go
parent479a6f240e37aacc449e3718d3853fa04c598ef4 (diff)
Refactor timers.go
Diffstat (limited to 'src/uapi.go')
-rw-r--r--src/uapi.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/uapi.go b/src/uapi.go
index 7ab3c4a..155f483 100644
--- a/src/uapi.go
+++ b/src/uapi.go
@@ -221,7 +221,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
return &IPCError{Code: ipcErrorInvalid}
}
}
- signalSend(peer.signal.handshakeReset)
+ peer.timer.handshakeDeadline.Reset(RekeyAttemptTime)
dummy = false
}
@@ -265,7 +265,7 @@ func ipcSetOperation(device *Device, socket *bufio.ReadWriter) *IPCError {
return err
}
peer.endpoint = endpoint
- signalSend(peer.signal.handshakeReset)
+ peer.timer.handshakeDeadline.Reset(RekeyAttemptTime)
return nil
}()