diff options
Diffstat (limited to 'thread_sync.c')
-rw-r--r-- | thread_sync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/thread_sync.c b/thread_sync.c index afeaaa464e..492a44992e 100644 --- a/thread_sync.c +++ b/thread_sync.c @@ -292,7 +292,8 @@ do_mutex_lock(VALUE self, int interruptible_p) mutex->th = th; mutex_locked(th, self); } - } else { + } + else { if (mutex->th == th) mutex_locked(th, self); } } |