diff --git a/src/common/mainloop/client.rs b/src/common/mainloop/client.rs index faa33c4..d7af211 100644 --- a/src/common/mainloop/client.rs +++ b/src/common/mainloop/client.rs @@ -275,7 +275,9 @@ where cipher_out = Some(cout); }, OnConnect::Packet(pkt) => { - send_pkt(&mut socket, &mut NullCipher {}, &pkt).await.unwrap(); + if let Err(err) = send_pkt(&mut socket, &mut NullCipher {}, &pkt).await { + error!("error sending on_connect packet {:?}", err); + } } } }