Skip to content

Commit fc21998

Browse files
hladsijis
authored andcommitted
ClientXMPP.process() is not available since slixmpp-1.9.0
1 parent 3543196 commit fc21998

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

errbot/backends/xmpp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import asyncio
34
import logging
45
import sys
56
from datetime import datetime
@@ -396,7 +397,7 @@ def disconnect(self) -> None:
396397
self.connected = False
397398

398399
def serve_forever(self) -> None:
399-
self.client.process()
400+
asyncio.get_event_loop().run_forever()
400401

401402
def add_event_handler(self, name: str, cb: Callable) -> None:
402403
self.client.add_event_handler(name, cb)

0 commit comments

Comments
 (0)