Damn copy paste
This commit is contained in:
parent
da340e7738
commit
b86fb1f6a2
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue