1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 03:57:58 +01:00

[websocket] Invoke send listeners

This commit is contained in:
Florian Schmaus 2024-01-13 15:48:29 +01:00
parent b117d8c3d4
commit 8133505050

View file

@ -271,6 +271,7 @@ public final class XmppWebSocketTransportModule
asyncButOrderedOutgoingElementsQueue.performAsyncButOrdered(outgoingElementsQueue, () -> {
for (TopLevelStreamElement topLevelStreamElement; (topLevelStreamElement = outgoingElementsQueue.poll()) != null;) {
websocket.send(topLevelStreamElement);
connectionInternal.fireFirstLevelElementSendListeners(topLevelStreamElement);
}
});
}