mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_Linux: RCOutput_Bebop: fixed potential deadlock
This commit is contained in:
parent
074e9dc9b0
commit
b1a62d6c8e
|
@ -488,6 +488,7 @@ void RCOutput_Bebop::_run_rcout()
|
|||
pthread_mutex_lock(&_mutex);
|
||||
ret = clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
if (ret != 0) {
|
||||
pthread_mutex_unlock(&_mutex);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue