diff options
author | Rahul Paknikar | 2021-01-08 13:10:30 +0530 |
---|---|---|
committer | GitHub | 2021-01-08 13:10:30 +0530 |
commit | 840090d0eedac3c60026269f50f9bb8365e4801b (patch) | |
tree | d518be49a0aacfdba9d18f99da73fc9d9fa7271f /src/projManagement/Worker.py | |
parent | a61c3edf10706ca0231b4441f84f801f0c9d4773 (diff) | |
parent | 1b5e07107e5fcf0269de20885a371b54049823e3 (diff) | |
download | eSim-840090d0eedac3c60026269f50f9bb8365e4801b.tar.gz eSim-840090d0eedac3c60026269f50f9bb8365e4801b.tar.bz2 eSim-840090d0eedac3c60026269f50f9bb8365e4801b.zip |
Merge pull request #162 from rahulp13/masterv2.1
fixed crash issues
Diffstat (limited to 'src/projManagement/Worker.py')
-rw-r--r-- | src/projManagement/Worker.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/projManagement/Worker.py b/src/projManagement/Worker.py index cdad4170..970bfccd 100644 --- a/src/projManagement/Worker.py +++ b/src/projManagement/Worker.py @@ -13,13 +13,12 @@ # MODIFIED: Rahul Paknikar, rahulp@iitb.ac.in # ORGANIZATION: eSim Team at FOSSEE, IIT Bombay # CREATED: Tuesday 24 February 2015 -# REVISION: Sunday 02 August 2020 +# REVISION: Sunday 16 August 2020 # ========================================================================= from PyQt5 import QtCore import subprocess from configuration.Appconfig import Appconfig -import threading class WorkerThread(QtCore.QThread): @@ -53,8 +52,10 @@ class WorkerThread(QtCore.QThread): @return None """ - if threading.active_count() > 1: + try: self.wait() + except BaseException: + pass def get_proc_threads(self): """ |