Entropy/Spritz:

- fix threading exception on exit definitely


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1800 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-04-17 14:34:02 +00:00
parent 483c79b9ac
commit eecae4303c
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ class ProcessGtkEventsThread(Thread):
self.__active.clear()
def run(self):
while self.__quit == False:
while not self.__quit:
while not self.__active.isSet():
self.__active.wait()
self.dosleep()
+5 -3
View File
@@ -22,6 +22,7 @@ import sys, os, pty
import logging
import traceback
import commands
import time
# Entropy Imports
sys.path.insert(0,"../../libraries")
@@ -48,7 +49,6 @@ import filters
from gui import SpritzGUI
from dialogs import *
from i18n import _
import time
class SpritzController(Controller):
@@ -1495,8 +1495,8 @@ class SpritzApplication(SpritzController,SpritzGUI):
if __name__ == "__main__":
gtkEventThread = ProcessGtkEventsThread()
try:
gtkEventThread = ProcessGtkEventsThread()
gtkEventThread.start()
gtk.window_set_default_icon_from_file(const.PIXMAPS_PATH+"/spritz-icon.png")
mainApp = SpritzApplication()
@@ -1542,4 +1542,6 @@ if __name__ == "__main__":
else:
okDialog(None,_("Cannot submit your report. Not connected to Internet?"))
gtkEventThread.doQuit()
sys.exit(1)
sys.exit(1)
gtkEventThread.doQuit()