Fixed inverted current thread condition [Bug #16808]

This commit is contained in:
Nobuyoshi Nakada 2020-04-23 22:19:28 +09:00
parent a52a459b16
commit 0f5ae7a200
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6

View File

@ -1622,7 +1622,7 @@ native_set_another_thread_name(rb_nativethread_id_t thread_id, VALUE name)
char buf[thread_name_max];
const char *s = "";
# if !defined SET_ANOTHER_THREAD_NAME
if (pthread_equal(pthread_self(), thread_id)) return;
if (!pthread_equal(pthread_self(), thread_id)) return;
# endif
if (!NIL_P(name)) {
long n;