for got unwrap :3
This commit is contained in:
parent
b37f487b7d
commit
487bcd5809
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue