Skip to content

Commit

Permalink
Send a message instead of dropping the endpoint
Browse files Browse the repository at this point in the history
Makes the intent clearer, but also fixes a bug because the receiver
endpoint doesn't handle close errors correctly.
  • Loading branch information
jvff committed Dec 2, 2021
1 parent e73dc8c commit 783a891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra-network/src/peer_set/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ where
} else {
// Cancel any request made to the service because it is using an outdated protocol
// version.
std::mem::drop(tx);
let _ = tx.send(CancelClientWork);
}
}

Expand Down

0 comments on commit 783a891

Please sign in to comment.