Browse Source
This 'fixes' the `wait_for` helper by removing a pointless final `time.sleep()`, thus potentially making the method return quicker. The old code could have had three final states: - success() := True - Timeout and success() := True - Timeout and success() := False The new code has just two final state: - success() := True - Timeout and success() := False It ensures the final `time.sleep()` is just the right amount before timeout. And more importantly making it more readable :-) Changelog-Nonemaster
Michael Schmoock
4 years ago
committed by
Rusty Russell
1 changed files with 5 additions and 4 deletions
Loading…
Reference in new issue