Skip to content

Commit

Permalink
Perform cancellation before the busy action to ensure inspections abort.
Browse files Browse the repository at this point in the history
  • Loading branch information
bclothier committed Jun 17, 2018
1 parent d117066 commit 59d3a2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Rubberduck.Parsing/VBA/ParseCoordinator.cs
Expand Up @@ -136,6 +136,7 @@ public void SuspendRequested(object sender, RubberduckStatusSuspendParserEventAr
_parsingSuspendLock.EnterWriteLock();
Interlocked.Add(ref _suspensionIteration, 1);
var originalStatus = State.Status;
Cancel();
_parserStateManager.SetStatusAndFireStateChanged(e.Requestor, ParserState.Busy,
CancellationToken.None);
e.BusyAction.Invoke();
Expand Down

0 comments on commit 59d3a2f

Please sign in to comment.