From 7f96adebdfe9cdb4d33366ab53e7ce00e90c4021 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 28 Oct 2021 15:13:54 +0200 Subject: [PATCH] faster destruction It takes a while to wait until the observer thread stopped. --- bigtext.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bigtext.py b/bigtext.py index d1c88e4..17beba1 100644 --- a/bigtext.py +++ b/bigtext.py @@ -54,11 +54,6 @@ class FileWatchdogThread(QRunnable): def destruct(self): self.observer.stop() - try: - self.observer.join() - except: - # probably: RuntimeError: cannot join thread before it is started - pass class BigText(QWidget):