From 8d564bb8a17b5b0251805baf20c6741d4d20e501 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 5 Oct 2024 02:20:59 -0600 Subject: Allow individual client to disconnect and reconnect --- src/system/bot/gateway.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/system/bot/gateway.rs') 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 { -- cgit 1.4.1