diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-11 03:00:21 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-11 03:00:21 -0400 |
commit | c38b48749cd33d02349cd950149d4413c8469cb4 (patch) | |
tree | 5a4c6dcadbd7612b9815efc9993cda8d4af77929 | |
parent | 315643f949eb67c07186ed6ca1099add355b2cb5 (diff) | |
download | rbw-c38b48749cd33d02349cd950149d4413c8469cb4.tar.gz rbw-c38b48749cd33d02349cd950149d4413c8469cb4.zip |
timeout should lock the agent, not quit it
-rw-r--r-- | src/bin/agent.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/agent.rs b/src/bin/agent.rs index 1c06912..b233403 100644 --- a/src/bin/agent.rs +++ b/src/bin/agent.rs @@ -183,7 +183,7 @@ impl Agent { }); } _ = &mut self.timeout => { - break; + self.state.write().await.priv_key = None } } } |