mirror of
https://github.com/naruxde/revpimodio2.git
synced 2025-11-08 13:53:53 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user