Browse Source

Fix to cancel pending callbacks for closing ORB topics

sbg
Lorenz Meier 11 years ago
parent
commit
98f5a77574
  1. 5
      src/modules/uORB/uORB.cpp

5
src/modules/uORB/uORB.cpp

@ -249,9 +249,10 @@ ORBDevNode::close(struct file *filp) @@ -249,9 +249,10 @@ ORBDevNode::close(struct file *filp)
} else {
SubscriberData *sd = filp_to_sd(filp);
if (sd != nullptr)
if (sd != nullptr) {
hrt_cancel(&sd->update_call);
delete sd;
}
}
return CDev::close(filp);
}

Loading…
Cancel
Save