Commit e20e0f6
committed
OCTRL-920 [core] invalidating auto-stop lets the goroutine exit
The goroutine for performing would never exit in case that the auto-stop would be invalidated. Consequently, it would be stuck indefinitely, surpassing the environment's lifetime.
I don't think this was causing any trouble except of just leaking goroutines and obfuscating the state of the application.
We also invalidate the auto-stop in case of going to ERROR, so we do not trigger a spurious transition attempt when it's pointless to do so.1 parent 0a11513 commit e20e0f6
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| 597 | + | |
596 | 598 | | |
597 | 599 | | |
598 | 600 | | |
| |||
1403 | 1405 | | |
1404 | 1406 | | |
1405 | 1407 | | |
| 1408 | + | |
| 1409 | + | |
1406 | 1410 | | |
1407 | 1411 | | |
1408 | 1412 | | |
| |||
1423 | 1427 | | |
1424 | 1428 | | |
1425 | 1429 | | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
1426 | 1434 | | |
1427 | 1435 | | |
1428 | 1436 | | |
| |||
1437 | 1445 | | |
1438 | 1446 | | |
1439 | 1447 | | |
1440 | | - | |
1441 | | - | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1442 | 1453 | | |
1443 | 1454 | | |
0 commit comments