Browse Source

Updated to work with the latest version of slixmpp

DeadTOm 1 week ago
parent
commit
c7226de9f2
1 changed files with 2 additions and 1 deletions
  1. 2 1
      owncastcom.py

+ 2 - 1
owncastcom.py

@@ -6,6 +6,7 @@ import requests
 import json
 import sys
 import os
+import asyncio
 
 logging.basicConfig(filename=config.log_file, level=logging.INFO)
 
@@ -63,7 +64,7 @@ try:
     if __name__ == '__main__':
         xmpp = CommandBot(config.user, config.passwd)
         xmpp.connect()
-        xmpp.process(forever=True)
+        asyncio.get_event_loop().run_forever()
 except KeyboardInterrupt:  # Catch ctrl-alt-del
     print('\nExiting program...')
     sys.exit()