Browse Source
This had multiple issues: - linked list was modified while other instances were still running and accessing it (the used linked list is NOT thread-safe). - Mavlink instance was deleted, but it was still in the linked list, and thus could still be dereferenced by other threads - the instance was deleted, but it was still accessed by the 'stop-all' calling thread What we do now is: - wait for all threads to exit - then remove the instances from the linked list and delete themsbg
1 changed files with 11 additions and 12 deletions
Loading…
Reference in new issue