From c495eb73fc5123ea7f1fdd6a759ae96d98caac07 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 11 Dec 2024 22:01:34 +0100 Subject: [PATCH] xmlstream: add stanza_not_sent event (fixes #3559) --- slixmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 0cefa6ef..ed1c17a2 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -1350,6 +1350,7 @@ class XMLStream(asyncio.BaseProtocol): if isinstance(data, (RootStanza, str)) and not passthrough: self.__queued_stanzas.append((data, use_filters)) log.debug('NOT SENT: %s %s', type(data), data) + self.event('stanza_not_sent', data) return self.waiting_queue.put_nowait((data, use_filters))