From c9d2a7a63ebf1b2546f19bb3c066e9a5f857058d Mon Sep 17 00:00:00 2001 From: Benjamin Braatz Date: Thu, 29 Jul 2021 15:14:40 +0200 Subject: [PATCH] Bugfix: Asynchronous remove during cancel not reliable. --- controlpi_plugins/camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controlpi_plugins/camera.py b/controlpi_plugins/camera.py index 68f4150..5c42ebd 100644 --- a/controlpi_plugins/camera.py +++ b/controlpi_plugins/camera.py @@ -91,5 +91,5 @@ class Camera(BasePlugin): filename = self._images.popleft() filepath = os.path.join(self.conf['path'], filename) - await aiofiles.os.remove(filepath) + os.remove(filepath) raise -- 2.34.1