Use executor::enter before blocking a thread in wait

This commit is contained in:
Sean McArthur
2019-06-05 14:12:31 -07:00
parent a701e93edb
commit 5096e12fa2
5 changed files with 76 additions and 66 deletions

View File

@@ -411,7 +411,8 @@ impl Stream for WaitBody {
Some(Err(e)) => {
let req_err = match e {
wait::Waited::TimedOut => ::error::timedout(None),
wait::Waited::Err(e) => e,
wait::Waited::Executor(e) => ::error::from(e),
wait::Waited::Inner(e) => e,
};
Err(req_err)