From cbc989d00e1c2c9fa29757cb0368aec534f68fec Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Thu, 8 Feb 2018 01:04:40 +0100 Subject: [PATCH] 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. --- picard/tagger.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/picard/tagger.py b/picard/tagger.py index e74c7c473..8e8443ae9 100644 --- a/picard/tagger.py +++ b/picard/tagger.py @@ -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()