mavlink / mavlink-camera-manager

MAVLink Camera Manager Service
MIT License
95 stars 30 forks source link

Fix panic when recreating streams #292

Closed joaoantoniocardoso closed 11 months ago

joaoantoniocardoso commented 11 months ago

The problem is that streams are recreated from inside the PipelineRunner context, which contrary to the main context, doesn't have a tokio runtime, thus, it panics when trying to spawn tokio tasks.

This is not the optimal solution 'cause every mavlink camera will end up creating a new tokio runtime, which is a waste of resources in this case, but still, this is a valid simple solution.