stranck-dev #31

Open
drew wants to merge 13 commits from stranck-dev into drew-dev
1 changed files with 3 additions and 3 deletions
Showing only changes of commit b86fb1f6a2 - Show all commits

View File

@ -15,7 +15,7 @@ def killSmptClient():
global sslLock global sslLock
global sslTimer global sslTimer
global smptSender global smptSender
logger.info(f"[SMPT] killSmptClient: Lock status: {self.updating.locked()}") logger.info(f"[SMPT] killSmptClient: Lock status: {sslLock.locked()}")
sslTimer.cancel() sslTimer.cancel()
sslLock.acquire() sslLock.acquire()
exp = None exp = None
@ -35,7 +35,7 @@ async def openSmptClient():
global sslTimer global sslTimer
global sslContext global sslContext
global smptSender global smptSender
logger.info(f"[SMPT] openSmptClient: Lock status: {self.updating.locked()}") logger.info(f"[SMPT] openSmptClient: Lock status: {sslLock.locked()}")
sslTimer.cancel() sslTimer.cancel()
sslLock.acquire() sslLock.acquire()
exp = None exp = None
@ -65,7 +65,7 @@ async def sendEmail(message : MIMEMultipart):
message['From'] = f'{EMAIL_SENDER_NAME} <{EMAIL_SENDER_MAIL}>' message['From'] = f'{EMAIL_SENDER_NAME} <{EMAIL_SENDER_MAIL}>'
await openSmptClient() await openSmptClient()
logger.debug(f"[SMPT] Sending mail {message['From']} -> {message['to']} '{message['Subject']}'") 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 exp = None
sslLock.acquire() sslLock.acquire()
try: try: