applets.simple: add kwargs to AppletControlRPC (#2155)

Co-authored-by: Simon Renblad <srenblad@m-labs.hk>
This commit is contained in:
Simon Renblad 2023-08-05 11:38:07 +08:00 committed by GitHub
parent c46ac6f87d
commit c4259dab18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ class AppletControlRPC:
self.dataset_ctl = dataset_ctl self.dataset_ctl = dataset_ctl
self.background_tasks = set() self.background_tasks = set()
def _background(self, coro, *args): def _background(self, coro, *args, **kwargs):
task = self.loop.create_task(coro(*args)) task = self.loop.create_task(coro(*args, **kwargs))
self.background_tasks.add(task) self.background_tasks.add(task)
task.add_done_callback(self.background_tasks.discard) task.add_done_callback(self.background_tasks.discard)