From 960e9f367e0c2374bdd3237a1af2d54c211ca816 Mon Sep 17 00:00:00 2001 From: jake Date: Thu, 2 Feb 2023 23:28:55 -0700 Subject: [PATCH] handle thing that apparently errored beyond my expectations --- src/common/mainloop/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } } }