On Tue, Jul 22 2025, Gerald Turner wrote:
> Attached patch gets the command working again (verified XMPP messages
> are received), however it outputs some noise.  Maybe it needs a task
> queue with a sleep.

Another patch fixing the aforementioned warnings.  My guess is that
slixmpp has a task queue of filters, activated due to painintheapt's
enablement of pubsub and other XEP's.

Tested on both bookworm-backports and trixie.

-- 
Gerald Turner <gtur...@unzane.com>        Encrypted mail preferred!
OpenPGP: 4096R / CA89 B27A 30FA 66C5 1B80  3858 EC94 2276 FDB8 716D
Description: Drain event loop
 The slixmpp library has removed 'process' method since 1.9.0.
 This is a second patch which drains the event loop in clean up warning
 messages.
Author: Gerald Turner <gtur...@unzane.com>
Bug-Debian: https://bugs.debian.org/1109729
Last-Update: 2025-07-22

--- painintheapt-0.20220226.orig/painintheapt
+++ painintheapt-0.20220226/painintheapt
@@ -252,7 +252,11 @@ def sendxmpp(config, config_dir, table,
     xmpp.register_plugin("xep_0199")  # XMPP ping
 
     xmpp.connect()
-    asyncio.get_event_loop().run_until_complete(xmpp.disconnected)
+
+    xmpp.loop.run_until_complete(xmpp.disconnected)
+
+    for task in asyncio.all_tasks(loop=xmpp.loop):
+        task.cancel()
 
 
 def sendsmtp(config, config_dir, table, count, host, debug, changes):

Attachment: signature.asc
Description: PGP signature

Reply via email to