for got unwrap :3

This commit is contained in:
Vincent Junge 2023-11-19 17:18:08 +01:00
parent dd9945068f
commit c0ce540da6
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ impl Gateway {
/// Closes the websocket connection and stops all tasks /// Closes the websocket connection and stops all tasks
async fn close(&mut self) { async fn close(&mut self) {
self.kill_send.send(()).unwrap(); self.kill_send.send(()).unwrap();
let _ = self.websocket_send.lock().await.close().await; self.websocket_send.lock().await.close().await.unwrap();
} }
/// Deserializes and updates a dispatched event, when we already know its type; /// Deserializes and updates a dispatched event, when we already know its type;