From e34f7d25307e9d5d04001700a36d230897719f74 Mon Sep 17 00:00:00 2001 From: Alexander Presnyakov Date: Fri, 18 Apr 2025 07:13:21 +0000 Subject: [PATCH] Fix thread arg errors (app instead of sequence) --- cmapi/cmapi_server/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmapi/cmapi_server/__main__.py b/cmapi/cmapi_server/__main__.py index 70877c208..32e25a71e 100644 --- a/cmapi/cmapi_server/__main__.py +++ b/cmapi/cmapi_server/__main__.py @@ -36,7 +36,7 @@ def worker(app): repeatedly. """ while True: - t = threading.Timer(5.0, clean_txn_by_timeout, app) + t = threading.Timer(5.0, clean_txn_by_timeout, args=(app,)) t.start() t.join() @@ -76,7 +76,7 @@ class TxnBackgroundThread(plugins.SimplePlugin): """Plugin entrypoint""" self.t = threading.Thread( - target=worker, name='TxnBackgroundThread', args=(self.app) + target=worker, name='TxnBackgroundThread', args=(self.app,) ) self.t.daemon = True self.t.start()