forked from indymedia/epicyon
Create session if it doesn't exist
This commit is contained in:
1 parent
b6befa89fd
commit
16ae6cb7b3
1 file changed
+2
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user