From 16ae6cb7b3d1abd2855df1c8c3757584e1d29f0e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 15 Aug 2019 17:23:38 +0100 Subject: [PATCH] Create session if it doesn't exist --- inbox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inbox.py b/inbox.py index 60db41770..fd283c049 100644 --- a/inbox.py +++ b/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