| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-06-24 18:47:48 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2025-06-24 18:47:48 UTC |
| parent | 8f2ba1cd2911d51d1b5c218a0a4adfb6ba772e5a |
| snikket/streams/XmppStropheStream.hx | +8 | -0 |
diff --git a/snikket/streams/XmppStropheStream.hx b/snikket/streams/XmppStropheStream.hx index b1babb4..5287e45 100644 --- a/snikket/streams/XmppStropheStream.hx +++ b/snikket/streams/XmppStropheStream.hx @@ -248,6 +248,14 @@ class XmppStropheStream extends GenericStream { } else { stream.ready = false; stream.trigger("status/offline", {}); + // Reconnect + StropheConn.connect_client( + conn, + null, + 0, + cpp.Callable.fromStaticFunction(strophe_connect), + userdata + ); } } if (event == untyped __cpp__("XMPP_CONN_FAIL")) {