aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-15 13:12:17 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-15 13:12:17 -0400
commita7231981eb36e17490cca58e2269944135ea8148 (patch)
tree7228d42ccf003966e765e9ea0268d1859953625d
parentdd46489fc9d1eb3d5524bb306af0722037833641 (diff)
downloadteleterm-a7231981eb36e17490cca58e2269944135ea8148.tar.gz
teleterm-a7231981eb36e17490cca58e2269944135ea8148.zip
need to reset rsock after closing the connection too
since the future that produced it completed at this point, so we don't want to poll it again (which could happen since closing is deferred)
-rw-r--r--src/server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server.rs b/src/server.rs
index 6f4d21b..7f04813 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -610,6 +610,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static>
}
e @ Err(..) => {
conn.close(e.map(|_| ()));
+ conn.rsock = Some(ReadSocket::Connected(s));
}
}
Ok(crate::component_future::Poll::DidWork)