mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Add logging in case websocket could not be created
This commit is contained in:
parent
7912524498
commit
708a89de9f
1 changed files with 3 additions and 1 deletions
|
@ -265,7 +265,9 @@ impl NetManager {
|
|||
.set_read_timeout(Some(Duration::from_millis(1)))
|
||||
.expect("can set read timeout");
|
||||
|
||||
state.ws = accept(stream).ok();
|
||||
state.ws = accept(stream)
|
||||
.inspect_err(|e| error!("Could not init websocket: {}", e))
|
||||
.ok();
|
||||
if state.ws.is_some() {
|
||||
info!("New stream connected");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue