Create session if it doesn't exist

master
Bob Mottram 2019-08-15 17:23:38 +01:00
parent b6befa89fd
commit 16ae6cb7b3
1 changed files with 2 additions and 1 deletions

View File

@ -1023,7 +1023,8 @@ def runInboxQueue(projectVersion: str, \
currTime=int(time.time())
# recreate the session periodically
if currTime-sessionLastUpdate>1200:
if not session or currTime-sessionLastUpdate>1200:
print('Creating inbox session')
session=createSession(domain,port,useTor)
sessionLastUpdate=currTime