Skip to content

Commit

Permalink
Update libraries/AP_Networking/AP_Networking.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Barker <[email protected]>
  • Loading branch information
magicrub and peterbarker committed Aug 22, 2023
1 parent 4bad05c commit 5ddb649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Networking/AP_Networking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void AP_Networking::init()

if (!backend->init()) {
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "NET: backend init failed");
delete backend;
// the backend init function creates a thread which references the backend pointer; that thread may be running so don't remove the backend allocation.
backend = nullptr;
return;
}
Expand Down

0 comments on commit 5ddb649

Please sign in to comment.