Tracker: Check that LockLooper() succeeds

CID602486
This commit is contained in:
John Scipione 2014-07-18 16:31:27 -04:00
parent a892df239f
commit 190fda60a6

View File

@ -227,9 +227,8 @@ PeriodicUpdatePoses::DoPeriodicUpdate(bool forceRedraw)
int32 count = fPoseList.CountItems();
for (int32 index = 0; index < count; index++) {
periodic_pose* periodic = fPoseList.ItemAt(index);
if (periodic->callback(periodic->pose, periodic->cookie)
|| forceRedraw) {
periodic->pose_view->LockLooper();
if ((periodic->callback(periodic->pose, periodic->cookie)
|| forceRedraw) && periodic->pose_view->LockLooper()) {
periodic->pose_view->UpdateIcon(periodic->pose);
periodic->pose_view->UnlockLooper();
}