Browse Source

Fix to cancel pending callbacks for closing ORB topics

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

3
src/modules/uORB/uORB.cpp

@ -249,7 +249,8 @@ ORBDevNode::close(struct file *filp) @@ -249,7 +249,8 @@ 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;
}

Loading…
Cancel
Save