diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-11-03 17:52:27 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-11-03 17:52:27 +0100 |
commit | 98f5a77574fde4b2c41d28cc0d694f6ca250fba1 (patch) | |
tree | a967d93eea2876c66cbf20ea354afd7f801f62a3 | |
parent | a4c99225c02e719d7900a533b777fd682eb5bd5c (diff) | |
download | px4-firmware-98f5a77574fde4b2c41d28cc0d694f6ca250fba1.tar.gz px4-firmware-98f5a77574fde4b2c41d28cc0d694f6ca250fba1.tar.bz2 px4-firmware-98f5a77574fde4b2c41d28cc0d694f6ca250fba1.zip |
Fix to cancel pending callbacks for closing ORB topics
-rw-r--r-- | src/modules/uORB/uORB.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/uORB/uORB.cpp b/src/modules/uORB/uORB.cpp index 7abbf42ae..50e433ec3 100644 --- a/src/modules/uORB/uORB.cpp +++ b/src/modules/uORB/uORB.cpp @@ -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); } |