| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-09-01 13:21:38 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-09-01 13:21:38 UTC |
| parent | 53164245e86c38889682a2c93c2e08cd49223d89 |
| borogove/streams/XmppJsStream.hx | +1 | -1 |
diff --git a/borogove/streams/XmppJsStream.hx b/borogove/streams/XmppJsStream.hx index aaceaf5..f7633f4 100644 --- a/borogove/streams/XmppJsStream.hx +++ b/borogove/streams/XmppJsStream.hx @@ -327,7 +327,7 @@ class XmppJsStream extends GenericStream { }); xmpp.on("offline", function (data) { - this.state.event("connection-closed"); + if (this.state.can("connection-closed")) this.state.event("connection-closed"); }); xmpp.streamManagement.on("resumed", (_) -> {