aboutsummaryrefslogtreecommitdiff
path: root/desktop/src/onionshare/main_window.py
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/src/onionshare/main_window.py')
-rw-r--r--desktop/src/onionshare/main_window.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/src/onionshare/main_window.py b/desktop/src/onionshare/main_window.py
index 38a6b275..c1e0cd1a 100644
--- a/desktop/src/onionshare/main_window.py
+++ b/desktop/src/onionshare/main_window.py
@@ -18,6 +18,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
+import time
from PySide2 import QtCore, QtWidgets, QtGui
from onionshare_cli.web import Web
@@ -286,3 +287,6 @@ class MainWindow(QtWidgets.QMainWindow):
def cleanup(self):
self.tabs.cleanup()
self.common.gui.onion.cleanup()
+
+ # Wait 1 second for threads to close gracefully, so tests finally pass
+ time.sleep(1)