From dbf55d6f41a63b94693a25fba512bee91de91cc8 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Wed, 1 Aug 2018 18:34:54 +0200 Subject: [PATCH] Fix #565 --- cps/asyncmail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cps/asyncmail.py b/cps/asyncmail.py index 7ff57946..d7707f26 100644 --- a/cps/asyncmail.py +++ b/cps/asyncmail.py @@ -101,7 +101,8 @@ class EMailThread(threading.Thread): doLock.release() self.send_raw_email() self.current += 1 - doLock.release() + else: + doLock.release() time.sleep(1) def stop(self):