for got unwrap :3

This commit is contained in:
Vincent Junge 2023-11-19 17:18:08 +01:00
parent b37f487b7d
commit 487bcd5809
No known key found for this signature in database
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
async fn close(&mut self) {
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;