Skip to content

Commit 1f8e22d

Browse files
committed
Cancel background parser on dispose
1 parent c03f37e commit 1f8e22d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Editor/Parsing/BackgroundParser.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public Task<TOutput> GetOrProcessAsync (TInput input, CancellationToken token)
117117

118118
protected virtual void Dispose (bool disposing)
119119
{
120+
currentOperation?.Cancel();
120121
}
121122

122123
~BackgroundProcessor () => Dispose (false);

0 commit comments

Comments
 (0)