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,6 +1402,7 @@ void UDPStandardImplementation::setThreadPriorities(){
break;
}
}
if(dataStreamEnable){
for(int i = 0; i < numberofDataCallbackThreads; ++i){
if(rights)
if (pthread_setschedparam(dataCallbackThreads[i], SCHED_RR, &datacallback_param) == EPERM){
@ -1409,6 +1410,7 @@ void UDPStandardImplementation::setThreadPriorities(){
break;
}
}
}
if (pthread_setschedparam(pthread_self(),5 , &tcp_param) == EPERM)
rights = false;