fix: Error of loop management in the context manager

When leaving the IO context manager, the loop flag was not reset
properly. The context manager could therefore only be traversed once.

Signed-off-by: Sven Sager <akira@narux.de>
This commit is contained in:
2023-12-01 15:48:57 +01:00
parent 8df43106e4
commit ad4a1fcd38

View File

@@ -121,7 +121,7 @@ class IOList(object):
# Wait until imgwriter has written outputs
self.__modio._imgwriter.newdata.wait(2.5)
if self.__modio._context_manager:
if not self.__modio._context_manager:
# Do not reset if ModIO is in a context manager itself, it will handle that flag
self.__modio._looprunning = False