Force quit after 30seconds

This commit is contained in:
Ruud
2012-05-20 23:13:53 +02:00
parent a4c9af24f2
commit cb89e12e97

View File

@@ -92,6 +92,7 @@ class Core(Plugin):
log.debug('Every plugin got shutdown event')
loop = True
starttime = time.time()
while loop:
log.debug('Asking who is running')
still_running = fireEvent('plugin.running', merge = True)
@@ -99,6 +100,8 @@ class Core(Plugin):
if len(still_running) == 0:
break
elif starttime < time.time() - 30: # Always force break after 30s wait
break
running = list(set(still_running) - set(self.ignore_restart))
if len(running) > 0: