mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-27 10:03:59 +00:00
Prevent multiple calls to tagger.exit()
When Picard is stopped by signal (ie. CTRL-C from linux command line), exit() may be called more than once.
This commit is contained in:
@@ -278,8 +278,10 @@ class Tagger(QtWidgets.QApplication):
|
||||
self.nats.update()
|
||||
|
||||
def exit(self):
|
||||
log.debug("Picard stopping")
|
||||
if self.stopping:
|
||||
return
|
||||
self.stopping = True
|
||||
log.debug("Picard stopping")
|
||||
self._acoustid.done()
|
||||
self.thread_pool.waitForDone()
|
||||
self.save_thread_pool.waitForDone()
|
||||
|
||||
Reference in New Issue
Block a user