mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Print more descriptive error message when we fail to bind zeroconf to the given port.
This commit is contained in:
parent
5ed4639cca
commit
4636cb71b9
1 changed files with 1 additions and 1 deletions
|
@ -215,7 +215,7 @@ pub fn discovery(handle: &Handle, config: ConnectConfig, device_id: String, port
|
|||
let serve = {
|
||||
let http = Http::new();
|
||||
debug!("Zeroconf server listening on 0.0.0.0:{}", port);
|
||||
http.serve_addr_handle(&format!("0.0.0.0:{}", port).parse().unwrap(), &handle, move || Ok(discovery.clone())).unwrap()
|
||||
http.serve_addr_handle(&format!("0.0.0.0:{}", port).parse().unwrap(), &handle, move || Ok(discovery.clone())).expect("Unable to bind Zeroconf to port")
|
||||
};
|
||||
|
||||
let s_port = serve.incoming_ref().local_addr().port();
|
||||
|
|
Loading…
Reference in a new issue