mirror of
https://github.com/ekzhang/bore.git
synced 2025-07-10 16:01:23 +07:00
Fix minor bug in server error handling
This commit is contained in:
@ -73,7 +73,11 @@ impl Server {
|
|||||||
Ok(listener) => listener,
|
Ok(listener) => listener,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
warn!(?port, "could not bind to local port");
|
warn!(?port, "could not bind to local port");
|
||||||
send_json(&mut stream, "port already in use").await?;
|
send_json(
|
||||||
|
&mut stream,
|
||||||
|
ServerMessage::Error("port already in use".into()),
|
||||||
|
)
|
||||||
|
.await?;
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user