diff options
| -rw-r--r-- | mullvad-daemon/src/wireguard.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mullvad-daemon/src/wireguard.rs b/mullvad-daemon/src/wireguard.rs index ee23483906..33a7fc25d9 100644 --- a/mullvad-daemon/src/wireguard.rs +++ b/mullvad-daemon/src/wireguard.rs @@ -64,8 +64,6 @@ impl Future for KeyRotationScheduler { type Error = Error; fn poll(&mut self) -> Poll<(), Error> { - log::debug!("Poll key rotation future"); - if let Some(key_request_rx) = &mut self.key_request_rx { let poll_result = key_request_rx.poll(); @@ -96,6 +94,8 @@ impl Future for KeyRotationScheduler { _ => (), } + log::debug!("Running automatic key rotation"); + let (wg_tx, wg_rx) = oneshot::channel(); let _ = self .daemon_tx @@ -104,8 +104,6 @@ impl Future for KeyRotationScheduler { )) .map_err(|_| Error::RunAutomaticKeyRotation)?; - log::debug!("Sent key replacement request"); - self.key_request_rx = Some(wg_rx); futures::task::current().notify(); Ok(Async::NotReady) |
