Create session if it doesn't exist

This commit is contained in:
bashrc committed 2019-08-15 17:23:38 +01:00
1 parent b6befa89fd
commit 16ae6cb7b3
1 file changed
+2 -1
+2 -1
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