Hi James,
On 1/25/21 12:05 PM, James Prestwood wrote:
After the re-write this was broken and not noticed until
recently. The issue appeared to be that the GLib timeout
callback retained no context of local variables. Previously
_wait_timed_out was set as a class variable, but this was
removed so multiple IWD instances could work. Without
_wait_timed_out being a class variable the GLib timeout
setting it had no effect on the wait loop.
To fix this we can set _wait_timed_out on the object being
passed in. This is preserved in the GLib timeout callback
and setting it gets honored in the wait loop.
---
autotests/util/iwd.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Applied, thanks.
Regards,
Denis