Should hopefully fix issues

This commit is contained in:
twinaphex 2016-07-06 00:32:41 +02:00
parent c8349862e1
commit 6a9fb1186d

View File

@ -99,7 +99,7 @@ static void *thread_wrap(void *data_)
struct thread_data *data = (struct thread_data*)data_;
if (!data)
return 0;
if (data->func && data->userdata)
if (data->func)
data->func(data->userdata);
free(data);
return 0;