Fix to cancel pending callbacks for closing ORB topics

This commit is contained in:
Lorenz Meier
2013-11-03 17:52:27 +01:00
parent a4c99225c0
commit 98f5a77574
+3 -2
View File
@@ -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);
}