Commit 7337829
committed
Fix empty range in terminate_pool_with_backoff making it a no-op
range(number_of_trials, 1) with number_of_trials=3 produces an empty
range since the default step is +1 and 3 > 1. The retry loop body
never executed, so on Windows pool termination with backoff never
happened. Fix by using range(number_of_trials) to iterate correctly.
Signed-off-by: codewithfourtix <codewithfourtix@gmail.com>1 parent d320c97 commit 7337829
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | | - | |
| 1393 | + | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | 1396 | | |
| |||
0 commit comments