diff options
Diffstat (limited to 'src/projManagement/Worker.py')
-rw-r--r-- | src/projManagement/Worker.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py index 8ce605f0..cdad4170 100644 --- a/src/projManagement/Worker.py +++ b/src/projManagement/Worker.py @@ -11,14 +11,15 @@ # NOTES: --- # AUTHOR: Fahim Khan, fahim.elex@gmail.com # MODIFIED: Rahul Paknikar, rahulp@iitb.ac.in -# ORGANIZATION: eSim team at FOSSEE, IIT Bombay. +# ORGANIZATION: eSim Team at FOSSEE, IIT Bombay # CREATED: Tuesday 24 February 2015 -# REVISION: Friday 14 February 2020 +# REVISION: Sunday 02 August 2020 # ========================================================================= -from PyQt4 import QtCore +from PyQt5 import QtCore import subprocess from configuration.Appconfig import Appconfig +import threading class WorkerThread(QtCore.QThread): @@ -52,7 +53,8 @@ class WorkerThread(QtCore.QThread): @return None """ - self.wait() + if threading.active_count() > 1: + self.wait() def get_proc_threads(self): """ |