mirror of
https://github.com/naruxde/revpimodio2.git
synced 2026-09-30 23:04:29 +02: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:
1 parent
8df43106e4
commit
ad4a1fcd38
1 file changed
+1
-1
@@ -121,7 +121,7 @@ class IOList(object):
|
|||||||
# Wait until imgwriter has written outputs
|
# Wait until imgwriter has written outputs
|
||||||
self.__modio._imgwriter.newdata.wait(2.5)
|
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
|
# Do not reset if ModIO is in a context manager itself, it will handle that flag
|
||||||
self.__modio._looprunning = False
|
self.__modio._looprunning = False
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user