Skip to content

Commit

Permalink
for got unwrap :3
Browse files Browse the repository at this point in the history
  • Loading branch information
SpecificProtagonist committed Nov 19, 2023
1 parent b37f487 commit 487bcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gateway/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 487bcd5

Please sign in to comment.