Skip to content

Commit 1c767a2

Browse files
fixed thread state condition
1 parent 04c85ad commit 1c767a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mono.Debugging.Soft/SoftEvaluationContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ Value RuntimeInvoke (MethodMirror method, object target, Value[] values, bool en
186186
} catch (NotSupportedException) {
187187
AssertTargetInvokeAllowed ();
188188
var threadState = Thread.ThreadState;
189-
if (threadState == ThreadState.WaitSleepJoin) {
189+
if ((threadState & ThreadState.WaitSleepJoin) == ThreadState.WaitSleepJoin) {
190190
DC.DebuggerLoggingService.LogMessage ("Thread state before evaluation is {0}", threadState);
191191
throw new EvaluatorException ("Evaluation is not allowed when the thread is in 'Wait' state");
192192
}

0 commit comments

Comments
 (0)