diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-15 06:58:44 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-15 06:58:44 -0400 |
commit | dd46489fc9d1eb3d5524bb306af0722037833641 (patch) | |
tree | af938ed155bda146f1f7141f0c93aea3ec1446d3 | |
parent | a69edd7a9121042093e9242f0b89cf9fcad30e58 (diff) | |
download | teleterm-dd46489fc9d1eb3d5524bb306af0722037833641.tar.gz teleterm-dd46489fc9d1eb3d5524bb306af0722037833641.zip |
reset reconnect timer after logging in
resetting after connect means that we could still potentially crashloop
during a multi-phase login
-rw-r--r-- | src/client.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client.rs b/src/client.rs index af58e68..7ecd211 100644 --- a/src/client.rs +++ b/src/client.rs @@ -249,8 +249,6 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> &crate::term::Size::get()?, )); - self.reset_reconnect_timer(); - Ok(()) } @@ -262,6 +260,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static> match msg { crate::protocol::Message::LoggedIn { .. } => { + self.reset_reconnect_timer(); for msg in &self.on_login { self.to_send.push_back(msg.clone()); } |