Skip to content

Commit c7b286f

Browse files
committed
Properly return error in wait for connect
1 parent 3f9584d commit c7b286f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

httpbis/src/client/conn.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ impl ErrorAwareDrop for ClientToWriteMessage {
127127
ClientToWriteMessage::Start(start) => {
128128
start.start.stream_handler.error(error);
129129
}
130-
ClientToWriteMessage::WaitForHandshake(_) => {
131-
// TODO: error
130+
ClientToWriteMessage::WaitForHandshake(wait) => {
131+
let _ = wait.send(Err(error));
132132
}
133133
ClientToWriteMessage::Common(_) => {
134134
// TODO: error

0 commit comments

Comments
 (0)