Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mavlink: mavlink_camera: Add debug message then removing mavlink came…
Browse files Browse the repository at this point in the history
…ra handle

Signed-off-by: Patrick José Pereira <[email protected]>
patrickelectric committed Nov 29, 2023
1 parent aad3916 commit d667d47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mavlink/mavlink_camera.rs
Original file line number Diff line number Diff line change
@@ -614,8 +614,10 @@ impl MavlinkCamera {

impl Drop for MavlinkCameraHandle {
fn drop(&mut self) {
warn!("Dropping MavlinkCameraHandle: {0:#?}", *self.inner);
self.heartbeat_handle.abort();
self.messages_handle.abort();
warn!("Finishing dropping {0:#?}", *self.inner);
super::manager::Manager::drop_id(self.inner.component.component_id)
}
}

0 comments on commit d667d47

Please sign in to comment.