AP_HAL_Linux: RCOutput_Bebop: fixed potential deadlock

This commit is contained in:
William Liu 2016-09-09 09:59:17 -07:00
parent 074e9dc9b0
commit b1a62d6c8e
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}