diff options
| author | 2023-12-04 13:46:34 -0500 | |
|---|---|---|
| committer | 2023-12-04 13:49:46 -0500 | |
| commit | 35de5a74e78061a4b4d515f1e15f3c6166cc89f0 (patch) | |
| tree | 4d0c975529c26d433f008373a59aa71f447686fa /api/api.go | |
| parent | 997be753b1fa92afc2273658813a4152aa31a27e (diff) | |
Ensure config callback is always removed in dream overlay
Currently, when repeatOnLifecycle is cancelled, it will throw a
CancellationException which will cause the cleanup of the callback to be
skipped. This change wraps the cleanup in a finally block so that it
always runs.
Fixes: 297320149
Test: verified callback is now removed when dream exits using log statements
Flag: NA
Change-Id: Ic6c32df3969c7fddbc544e369551a7a52f4cdae1
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions