mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 18:13:27 +00:00
fix segfault
This commit is contained in:
parent
768e5490d5
commit
1276387c24
@ -175,7 +175,7 @@ APR_DECLARE(apr_status_t) apr_thread_create(apr_thread_t **new,
|
|||||||
|
|
||||||
if ((stat = pthread_create((*new)->td, temp, dummy_worker, (*new))) == 0) {
|
if ((stat = pthread_create((*new)->td, temp, dummy_worker, (*new))) == 0) {
|
||||||
#ifndef __APPLE__
|
#ifndef __APPLE__
|
||||||
if (attr->priority) {
|
if (attr && attr->priority) {
|
||||||
pthread_t *thread = (*new)->td;
|
pthread_t *thread = (*new)->td;
|
||||||
pthread_setschedprio(*thread, attr->priority);
|
pthread_setschedprio(*thread, attr->priority);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user