summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-03-11 22:02:31 +0200
committerKyren223 <Kyren223@proton.me>2025-03-11 22:02:31 +0200
commit98da6df0be3296a5c24035d2ce0b5b98b45599f4 (patch)
treed96f6582933f29753fb6fcf94423932115b059f5 /internal
parent439af03aeb42f5b83ef1bea49fa8d8af4c7857bc (diff)
Fixed bug where the client would log an error message when
disconnecting, instead of gracefully disconnecting
Diffstat (limited to 'internal')
-rw-r--r--internal/client/gateway/gateway.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/client/gateway/gateway.go b/internal/client/gateway/gateway.go
index 178dd92..e5fd45e 100644
--- a/internal/client/gateway/gateway.go
+++ b/internal/client/gateway/gateway.go
@@ -196,8 +196,8 @@ func handlePacketStream() {
func Disconnect() {
if conn != nil {
- _ = conn.Close()
closed = true
+ _ = conn.Close()
}
}