Another part of a fix for #4098.

I'm not sure how fatal if would be if the idle queue of NS lookups
hangs, but this fix won't hurt anyway, so I better fix it.
This commit is contained in:
js 2008-07-16 12:58:52 +00:00
parent d1c60a07e5
commit 4dbf5d9c0e
1 changed files with 11 additions and 1 deletions

View File

@ -321,5 +321,15 @@ if __name__ == '__main__':
but.connect('clicked', clicked)
win.add(hbox)
win.show_all()
gobject.timeout_add(200, idlequeue.process)
def process():
try:
idlequeue.process()
except:
# Otherwise, an exception will stop our loop
gobject.timeout_add(200, process)
raise
return True
gobject.timeout_add(200, process)
gtk.main()