X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=nullclient.py;h=8c7cb6ba56ff55bca49389fec9318ba441f255ee;hb=c2951f59ada56c74f666f005abd656d81e296593;hp=0438951ea12f94e7f33659f2eb68261cfce0654d;hpb=7752e0f4a14a32ede02b8b86c83d9510338a59ed;p=python-purple diff --git a/nullclient.py b/nullclient.py index 0438951..8c7cb6b 100644 --- a/nullclient.py +++ b/nullclient.py @@ -17,10 +17,10 @@ # along with this program. If not, see . # -import ecore import getpass import purple import sys +import time # The information below is needed by libpurple __NAME__ = "nullclient" @@ -60,5 +60,6 @@ if __name__ == '__main__': # Enable account (connects automatically) account.set_enabled(True) - # Initializes ecore mainloop - ecore.main_loop_begin() + while True: + core.iterate_main_loop() + time.sleep(0.01)