From 9a45e26026843b72254f2790dbb3b95e5fa64271 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 28 Jul 2021 01:18:51 +0200 Subject: [PATCH] another windows sighandler fix --- copyparty/svchub.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copyparty/svchub.py b/copyparty/svchub.py index 0cdb1fb2..5e2d9cb1 100644 --- a/copyparty/svchub.py +++ b/copyparty/svchub.py @@ -182,6 +182,7 @@ class SvcHub(object): pass self.shutdown() + thr.join() else: self.stop_thr() @@ -206,6 +207,9 @@ class SvcHub(object): self.stopping = True self.stop_req = True + with self.stop_cond: + self.stop_cond.notify_all() + ret = 1 try: with self.log_mutex: