From 99a4b654678522de18a5b9a72281834968d4abe5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 8 Jun 2020 21:18:02 +0100 Subject: [PATCH] Wait for session --- inbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inbox.py b/inbox.py index a61b8e0ac..c5f26cba4 100644 --- a/inbox.py +++ b/inbox.py @@ -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