try ignoring error

This commit is contained in:
Maximilian Schneider 2022-09-07 04:14:14 +02:00
parent 3dfb430416
commit 1a2fcd2002
1 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,9 @@ async fn handle_connection(
info!("ws disconnected: {} err: {:?}", &addr, result_forward);
peer_map.lock().unwrap().remove(&addr);
result_ckpt.unwrap();
result_forward.unwrap();
// disconnecting the socket can result in an error in result_forward.
// unwrapping it can cause a panic in tokyo, ignore error for now
// result_forward.unwrap();
}
#[derive(Clone, Debug, Deserialize)]