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 <gturner@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):
