From f3c9fece1b785fda2a32f0cba2ead2f6800ecc14 Mon Sep 17 00:00:00 2001 From: Yan Zhai Date: Mon, 22 Apr 2019 04:44:24 +0000 Subject: [PATCH] #34 writable condition reversed --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index b77fee4..04d7421 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -47,8 +47,8 @@ impl TlsState { pub(crate) fn writeable(&self) -> bool { match *self { - TlsState::WriteShutdown | TlsState::FullyShutdown => true, - _ => false, + TlsState::WriteShutdown | TlsState::FullyShutdown => false, + _ => true, } } }