AP_Networking: return bug fix

Co-authored-by: Ryan <ryanfriedman5410+github@gmail.com>
This commit is contained in:
Tom Pittenger 2023-11-17 14:26:11 -08:00
parent fcf602cbe2
commit 3b35915774
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ void AP_Networking::Port::udp_client_init(const uint32_t size_rx, const uint32_t
return;
}
if (sock != nullptr) {
return false;
return;
}
sock = new SocketAPM(true);
if (sock == nullptr) {