Author: js Date: 2008-07-16 14:58:52 +0200 (Wed, 16 Jul 2008) New Revision: 9944
Modified: trunk/src/common/nslookup.py Log: 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.
Modified: trunk/src/common/nslookup.py =================================================================== --- trunk/src/common/nslookup.py 2008-07-16 02:37:57 UTC (rev 9943) +++ trunk/src/common/nslookup.py 2008-07-16 12:58:52 UTC (rev 9944) @@ -321,5 +321,15 @@ 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()