aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-10-14 01:45:41 -0400
committerJesse Luehrs <doy@tozt.net>2019-10-14 01:45:41 -0400
commitcb0bf34cdd7cc6f8f3bfc6c19d74d5ac1454c904 (patch)
treeae8f4f5db9c2ec0aa27a938e5702575d693778f7
parentd431885429c949b0571baadbdb3c8fd5f63ccdb6 (diff)
downloadteleterm-cb0bf34cdd7cc6f8f3bfc6c19d74d5ac1454c904.tar.gz
teleterm-cb0bf34cdd7cc6f8f3bfc6c19d74d5ac1454c904.zip
polling should be considered doing work
-rw-r--r--src/cmd/record.rs2
-rw-r--r--src/cmd/stream.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/record.rs b/src/cmd/record.rs
index 3e23816..045a54e 100644
--- a/src/cmd/record.rs
+++ b/src/cmd/record.rs
@@ -205,7 +205,7 @@ impl RecordSession {
}
// don't return final event here - wait until we are done
// writing all data to the file (see poll_write_file)
- Ok(crate::component_future::Poll::NothingToDo)
+ Ok(crate::component_future::Poll::DidWork)
}
futures::Async::NotReady => {
Ok(crate::component_future::Poll::NotReady)
diff --git a/src/cmd/stream.rs b/src/cmd/stream.rs
index 7ee355a..bc0d532 100644
--- a/src/cmd/stream.rs
+++ b/src/cmd/stream.rs
@@ -284,7 +284,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static>
}
// don't return final event here - wait until we are done
// sending all data to the server (see poll_write_server)
- Ok(crate::component_future::Poll::NothingToDo)
+ Ok(crate::component_future::Poll::DidWork)
}
futures::Async::NotReady => {
Ok(crate::component_future::Poll::NotReady)