winpr-thread: added an assertion to enforce that thread_list is correctly set

This commit is contained in:
Emmanuel Ledoux 2015-05-26 17:55:27 +02:00 committed by eledoux
parent 93127e0a7a
commit 56f34582c7
1 changed files with 2 additions and 1 deletions

View File

@ -349,7 +349,8 @@ static BOOL winpr_StartThread(WINPR_THREAD *thread)
WLog_ERR(TAG, "failed to launch the thread");
goto error;
}
assert(ListDictionary_Contains(thread_list, &thread->thread));
pthread_attr_destroy(&attr);
dump_thread(thread);
return TRUE;