| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-09-18 18:10:22 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2024-09-18 18:10:22 UTC |
| parent | b72f25c07112aef4076e03f91b58dd3dd8d31242 |
| snikket/streams/XmppJsStream.hx | +2 | -1 |
diff --git a/snikket/streams/XmppJsStream.hx b/snikket/streams/XmppJsStream.hx index ebddc4a..1364128 100644 --- a/snikket/streams/XmppJsStream.hx +++ b/snikket/streams/XmppJsStream.hx @@ -293,7 +293,8 @@ class XmppJsStream extends GenericStream { } public function sendStanza(stanza:Stanza) { - if (client == null) { + if (client == null || client.status != "online") { + // TODO: these aren't part of the sm state so they can get lost pending.push(convertFromStanza(stanza)); } else { client.send(convertFromStanza(stanza));