Skip to content

Commit

Permalink
Dispose on runInSubRoot error
Browse files Browse the repository at this point in the history
  • Loading branch information
Exelord committed Feb 16, 2023
1 parent 9b57866 commit 56c55e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export function runInSubRoot<T>(
} catch (e) {
hasError = true;
error = e;
dispose();
throw e;
}
}, owner);
Expand Down

0 comments on commit 56c55e0

Please sign in to comment.