Skip to content

Commit cfd1b09

Browse files
committed
Remove extra logic that is now unnecessary
1 parent 5fc75d4 commit cfd1b09

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/common/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ where
9898
Err(err) => return Poll::Ready(Err(err)),
9999
};
100100

101-
let stats = self.session.process_new_packets().map_err(|err| {
101+
self.session.process_new_packets().map_err(|err| {
102102
// In case we have an alert to send describing this error,
103103
// try a last-gasp write -- but don't predate the primary
104104
// error.
@@ -107,13 +107,6 @@ where
107107
io::Error::new(io::ErrorKind::InvalidData, err)
108108
})?;
109109

110-
if stats.peer_has_closed() && self.session.is_handshaking() {
111-
return Poll::Ready(Err(io::Error::new(
112-
io::ErrorKind::UnexpectedEof,
113-
"tls handshake alert",
114-
)));
115-
}
116-
117110
Poll::Ready(Ok(n))
118111
}
119112

0 commit comments

Comments
 (0)