mirror of
https://github.com/ekzhang/bore.git
synced 2025-07-22 22:02:02 +07:00
Fix minor bug in server error handling
This commit is contained in:
@ -73,7 +73,11 @@ impl Server {
|
||||
Ok(listener) => listener,
|
||||
Err(_) => {
|
||||
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(());
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user