remove pthread_kill/pthread_cancel from signals (if thread wasn't run, these functions cause segfault)
This commit is contained in:
@@ -593,7 +593,7 @@ void closeSerial(){
|
||||
DBG("close encoder's fd");
|
||||
close(encfd[0]);
|
||||
encfd[0] = -1;
|
||||
if(Conf.SepEncoder == 2){
|
||||
if(Conf.SepEncoder == 2 && encfd[1] > -1){
|
||||
close(encfd[1]);
|
||||
encfd[1] = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user