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