From 3bb4331f4f8bb32dc3073b31e7521a681b30863b Mon Sep 17 00:00:00 2001 From: Alexey Galakhov Date: Mon, 6 Feb 2017 21:22:19 +0100 Subject: [PATCH] protocol: fix bug with async handling --- src/protocol/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs index 5a22e14..cd90502 100644 --- a/src/protocol/mod.rs +++ b/src/protocol/mod.rs @@ -365,7 +365,7 @@ trait NonBlockingError: Sized { impl NonBlockingError for IoError { fn into_non_blocking(self) -> Option { match self.kind() { - IoErrorKind::Interrupted => None, + IoErrorKind::WouldBlock => None, _ => Some(self), } }