[runtime] Fix a C&P problem introduced by d4052c556399c2ef72c79088c05a8ad6913647a6.
authorZoltan Varga <vargaz@gmail.com>
Sat, 3 Sep 2016 00:59:20 +0000 (02:59 +0200)
committerZoltan Varga <vargaz@gmail.com>
Sat, 3 Sep 2016 00:59:20 +0000 (02:59 +0200)
mono/metadata/monitor.c

index fe09d0c24b881a1c10ee7046c94cb5c5aba395e8..ef01f3d5305c7d40fd2194627280ea832f174698 100644 (file)
@@ -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 {