From b86fb1f6a231ffda739f21d5662a687ba768d9a3 Mon Sep 17 00:00:00 2001 From: Stranck Date: Fri, 31 May 2024 17:43:58 +0200 Subject: [PATCH] Damn copy paste --- email_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/email_util.py b/email_util.py index 32a7dbb..bf68a96 100644 --- a/email_util.py +++ b/email_util.py @@ -15,7 +15,7 @@ def killSmptClient(): global sslLock global sslTimer global smptSender - logger.info(f"[SMPT] killSmptClient: Lock status: {self.updating.locked()}") + logger.info(f"[SMPT] killSmptClient: Lock status: {sslLock.locked()}") sslTimer.cancel() sslLock.acquire() exp = None @@ -35,7 +35,7 @@ async def openSmptClient(): global sslTimer global sslContext global smptSender - logger.info(f"[SMPT] openSmptClient: Lock status: {self.updating.locked()}") + logger.info(f"[SMPT] openSmptClient: Lock status: {sslLock.locked()}") sslTimer.cancel() sslLock.acquire() exp = None @@ -65,7 +65,7 @@ async def sendEmail(message : MIMEMultipart): message['From'] = f'{EMAIL_SENDER_NAME} <{EMAIL_SENDER_MAIL}>' await openSmptClient() logger.debug(f"[SMPT] Sending mail {message['From']} -> {message['to']} '{message['Subject']}'") - logger.info(f"[SMPT] sendEmail: Lock status: {self.updating.locked()}") + logger.info(f"[SMPT] sendEmail: Lock status: {sslLock.locked()}") exp = None sslLock.acquire() try: