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:
parent
d1c60a07e5
commit
4dbf5d9c0e
1 changed files with 11 additions and 1 deletions
|
@ -321,5 +321,15 @@ if __name__ == '__main__':
|
||||||
but.connect('clicked', clicked)
|
but.connect('clicked', clicked)
|
||||||
win.add(hbox)
|
win.add(hbox)
|
||||||
win.show_all()
|
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()
|
gtk.main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue