faster destruction
It takes a while to wait until the observer thread stopped.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user