X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=nullclient.py;h=8c7cb6ba56ff55bca49389fec9318ba441f255ee;hp=0438951ea12f94e7f33659f2eb68261cfce0654d;hb=c2951f59ada56c74f666f005abd656d81e296593;hpb=7752e0f4a14a32ede02b8b86c83d9510338a59ed 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)