forked from indymedia/epicyon
Create session if it doesn't exist
parent
b6befa89fd
commit
16ae6cb7b3
3
inbox.py
3
inbox.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue