mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 04:44:30 +00:00
Fix error message when connection's IO loop exits before message loop
This commit is contained in:
parent
561cabbba2
commit
42ba24c5a8
1 changed files with 2 additions and 1 deletions
|
@ -227,7 +227,8 @@ impl Peer {
|
|||
connection
|
||||
.outgoing_tx
|
||||
.send(request.into_envelope(message_id, None, original_sender_id.map(|id| id.0)))
|
||||
.await?;
|
||||
.await
|
||||
.map_err(|_| anyhow!("connection was closed"))?;
|
||||
let response = rx
|
||||
.recv()
|
||||
.await
|
||||
|
|
Loading…
Reference in a new issue