Wait for session

main
Bob Mottram 2020-06-08 21:18:02 +01:00
parent 29c8332741
commit 99a4b65467
1 changed files with 2 additions and 0 deletions

View File

@ -2348,6 +2348,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
if not session or currTime - sessionLastUpdate > 1200:
print('Creating inbox session')
session = createSession(useTor)
if not session:
continue
sessionLastUpdate = currTime
# oldest item first