[threads] Remove ThreadState_StopRequested (#4462)
[mono.git] / mono / metadata / gc.c
index 499e3840063685256683cf588a7c2b5f04bac232..f3bc6aba7c5cefa793da20e97c590ed9c0103356 100644 (file)
@@ -478,7 +478,7 @@ mono_domain_finalize (MonoDomain *domain, guint32 timeout)
                if (res == MONO_SEM_TIMEDWAIT_RET_SUCCESS) {
                        break;
                } else if (res == MONO_SEM_TIMEDWAIT_RET_ALERTED) {
-                       if ((thread->state & (ThreadState_StopRequested | ThreadState_SuspendRequested)) != 0) {
+                       if ((thread->state & (ThreadState_AbortRequested | ThreadState_SuspendRequested)) != 0) {
                                ret = FALSE;
                                break;
                        }