summary refs log tree commit diff
path: root/src/system/bot/gateway.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/system/bot/gateway.rs')
-rw-r--r--src/system/bot/gateway.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system/bot/gateway.rs b/src/system/bot/gateway.rs
index 4a83086..5a45083 100644
--- a/src/system/bot/gateway.rs
+++ b/src/system/bot/gateway.rs
@@ -76,7 +76,7 @@ impl Gateway {
 
                         if source.is_fatal() {
                             system_channel.send(SystemEvent::GatewayClosed(bot_conf.member_id)).await;
-                            break;
+                            return;
                         }
                     }
                     Ok(event) => match event {