From 55fa512d5494a2d8d707af63fd2c77062a99de32 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 15 Aug 2019 17:45:07 +0100 Subject: [PATCH] clear --- inbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inbox.py b/inbox.py index 1bc125fea..ee4a28690 100644 --- a/inbox.py +++ b/inbox.py @@ -972,7 +972,7 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \ def restoreQueueItems(baseDir: str,queue: []) -> None: """Checks the queue for each account and appends filenames """ - queue=[] + queue.clear() for subdir,dirs,files in os.walk(baseDir+'/accounts'): for account in dirs: queueDir=baseDir+'/accounts/'+account+'/queue' @@ -1018,7 +1018,7 @@ def runInboxQueue(projectVersion: str, \ itemReadFailed=0 while True: - time.sleep(1) + time.sleep(1) if len(queue)>0: currTime=int(time.time())