mirror of https://gitlab.com/bashrc2/epicyon
Regenerate sessions less frequently
parent
52d1f30b4f
commit
d392e0a15d
4
inbox.py
4
inbox.py
|
@ -2349,8 +2349,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
|||
currTime = int(time.time())
|
||||
|
||||
# recreate the session periodically
|
||||
if not session or currTime - sessionLastUpdate > 1200:
|
||||
print('Creating inbox queue session at 20min interval')
|
||||
if not session or currTime - sessionLastUpdate > 21600:
|
||||
print('Regenerating inbox queue session at 6hr interval')
|
||||
session = createSession(proxyType)
|
||||
if not session:
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue