From 586507753b7ad38b8bfd5ed233929c835a72c878 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 21 Jun 2021 21:41:51 +0100 Subject: [PATCH] wasp: Manager: Fix the capture of the post-init free RAM Fixes: b59a5b1d37c3 ("wasp: Manager: Rewrite the startup logic") Signed-off-by: Daniel Thompson --- wasp/wasp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wasp/wasp.py b/wasp/wasp.py index 155fded..541807f 100644 --- a/wasp/wasp.py +++ b/wasp/wasp.py @@ -144,6 +144,8 @@ class Manager(): self._scheduling = False def secondary_init(self): + global free + if not self.app: # Register default apps if main hasn't put anything on the quick ring if not self.quick_ring: @@ -242,8 +244,6 @@ class Manager(): def switch(self, app): """Switch to the requested application. """ - global free - if self.app: if 'background' in dir(self.app): try: