From 462dd05a951aa2afeab5f2af7e3adaf18249e0f8 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sat, 3 Sep 2016 02:59:20 +0200 Subject: [PATCH] [runtime] Fix a C&P problem introduced by d4052c556399c2ef72c79088c05a8ad6913647a6. --- mono/metadata/monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mono/metadata/monitor.c b/mono/metadata/monitor.c index fe09d0c24b8..ef01f3d5305 100644 --- a/mono/metadata/monitor.c +++ b/mono/metadata/monitor.c @@ -930,7 +930,7 @@ retry_contended: if (wait_ret == MONO_SEM_TIMEDWAIT_RET_ALERTED) { LOCK_DEBUG (g_message ("%s: (%d) interrupted waiting, returning -1", __func__, id)); return -1; - } else if (wait_ret == MONO_SEM_TIMEDWAIT_RET_ALERTED) { + } else if (wait_ret == MONO_SEM_TIMEDWAIT_RET_TIMEDOUT) { LOCK_DEBUG (g_message ("%s: (%d) timed out waiting, returning FALSE", __func__, id)); return 0; } else { -- 2.25.1