root receiver crashing bug resolved

This commit is contained in:
Dhanya Maliakal 2016-10-27 08:50:44 +02:00
parent 7b36c63d8f
commit c2c80c6bf6

View File

@ -1402,12 +1402,14 @@ void UDPStandardImplementation::setThreadPriorities(){
break; break;
} }
} }
for(int i = 0; i < numberofDataCallbackThreads; ++i){ if(dataStreamEnable){
if(rights) for(int i = 0; i < numberofDataCallbackThreads; ++i){
if (pthread_setschedparam(dataCallbackThreads[i], SCHED_RR, &datacallback_param) == EPERM){ if(rights)
rights = false; if (pthread_setschedparam(dataCallbackThreads[i], SCHED_RR, &datacallback_param) == EPERM){
break; rights = false;
} break;
}
}
} }
if (pthread_setschedparam(pthread_self(),5 , &tcp_param) == EPERM) if (pthread_setschedparam(pthread_self(),5 , &tcp_param) == EPERM)
rights = false; rights = false;