You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add additional value to suspensionOutcome enum and stop rethrowing
The new value indicates that the suspension failed because the executing thread already held a read lock to the suspension lock. This is an error state distinct from a failure due to an exception.
Copy file name to clipboardExpand all lines: Rubberduck.Parsing/VBA/ParseCoordinator.cs
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ public void SuspendRequested(object sender, RubberduckStatusSuspendParserEventAr
116
116
{
117
117
if(ParsingSuspendLock.IsReadLockHeld)
118
118
{
119
-
e.Result=SuspensionOutcome.UnexpectedError;
119
+
e.Result=SuspensionOutcome.ReadLockAlreadyHeld;
120
120
conststringerrorMessage=
121
121
"A suspension action was attempted while a read lock was held. This indicates a bug in the code logic as suspension should not be requested from same thread that has a read lock.";
122
122
Logger.Error(errorMessage);
@@ -154,13 +154,11 @@ public void SuspendRequested(object sender, RubberduckStatusSuspendParserEventAr
0 commit comments