bitbake/server: Raise a shutdown event if we're seeing exceptions

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-08-20 09:38:24 +01:00
parent 4a8fe7fc99
commit 9b8ae6ba45
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,7 @@ class BBUIEventQueue:
def queue_event(self, event):
self.eventQueue.append(event)
def system_quit( self ):
def system_quit( self ):
bb.event.unregister_UIHhandler(self.EventHandle)
class BitBakeServer():
@ -140,6 +140,7 @@ class BitBakeServer():
except:
import traceback
traceback.print_exc()
self.commands.runCommand(["stateShutdown"])
pass
if nextsleep is not None:
#print "Sleeping for %s (%s)" % (nextsleep, delay)