aboutsummaryrefslogtreecommitdiffstats
path: root/thread_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread_win32.c')
-rw-r--r--thread_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_win32.c b/thread_win32.c
index fb9b680b00..993f5f271d 100644
--- a/thread_win32.c
+++ b/thread_win32.c
@@ -246,7 +246,7 @@ native_sleep(rb_thread_t *th, struct timeval *tv, int deadlockable)
}
GVL_UNLOCK_END();
th->status = prev_status;
- if (!tv && deadlockable) th->vm->sleeper++;
+ if (!tv && deadlockable) th->vm->sleeper--;
RUBY_VM_CHECK_INTS();
}