#34 writable condition reversed

This commit is contained in:
Yan Zhai 2019-04-22 04:44:24 +00:00
parent 0cbd252ee4
commit f3c9fece1b

View File

@ -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,
}
}
}