summaryrefslogtreecommitdiff
path: root/backend/decky_loader/main.py
diff options
context:
space:
mode:
authorSims <38142618+suchmememanyskill@users.noreply.github.com>2024-09-02 01:45:47 +0200
committerGitHub <noreply@github.com>2024-09-01 19:45:47 -0400
commita6e4bcf0527a998261698c555113a3f652d280d9 (patch)
tree493abbacaa997c00130d3cd13a28db07c5075dbf /backend/decky_loader/main.py
parentc1f7ca7f2079fd5960c67d612f2551e033281051 (diff)
downloaddecky-loader-a6e4bcf0527a998261698c555113a3f652d280d9.tar.gz
decky-loader-a6e4bcf0527a998261698c555113a3f652d280d9.zip
Fix updater taking a long time (#696)v3.0.0-pre12
Replaces subprocess with asyncio.subprocess in some localplatformlinux functions and improves shutdown handling Co-authored-by: AAGaming <aagaming@riseup.net>
Diffstat (limited to 'backend/decky_loader/main.py')
-rw-r--r--backend/decky_loader/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/backend/decky_loader/main.py b/backend/decky_loader/main.py
index b86411e1..315b7d29 100644
--- a/backend/decky_loader/main.py
+++ b/backend/decky_loader/main.py
@@ -138,16 +138,17 @@ class PluginManager:
tasks = all_tasks()
current = current_task()
async def cancel_task(task: Task[Any]):
- logger.debug(f"Cancelling task {task}")
+ name = task.get_coro().__qualname__
+ logger.debug(f"Cancelling task {name}")
try:
task.cancel()
try:
await task
except CancelledError:
pass
- logger.debug(f"Task {task} finished")
+ logger.debug(f"Task {name} finished")
except:
- logger.warning(f"Failed to cancel task {task}:\n" + format_exc())
+ logger.warning(f"Failed to cancel task {name}:\n" + format_exc())
pass
if current:
tasks.remove(current)