Commit b98371c
committed
CA-418227: Handle exceptions in At_least_once_more.again
At_least_once_more is used by `consider_enabling_host_request`, which is an
important function to get hosts marked as `enabled`. The purpose of this
is to prevent running `consider_enabling_host` many times unnecessarily.
The problem with the `again` function is that it does not handle any
exception raised by the operation `f`. If an exception occurs, then the
thread exists without setting `in_progress` to `false`, which prevents
the operation from ever getting executied again.
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>1 parent 38ab849 commit b98371c
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | | - | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
0 commit comments