mirror of https://github.com/ArduPilot/ardupilot
SITL: Remove pointer check before delete
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
61bcbfea14
commit
ba293084e3
|
@ -155,9 +155,8 @@ bool FlightAxis::soap_request_start(const char *action, const char *fmt, ...)
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
// open SOAP socket to FlightAxis
|
// open SOAP socket to FlightAxis
|
||||||
if (sock) {
|
delete sock;
|
||||||
delete sock;
|
|
||||||
}
|
|
||||||
sock = new SocketAPM(false);
|
sock = new SocketAPM(false);
|
||||||
if (!sock->connect(controller_ip, controller_port)) {
|
if (!sock->connect(controller_ip, controller_port)) {
|
||||||
::printf("connect failed\n");
|
::printf("connect failed\n");
|
||||||
|
|
Loading…
Reference in New Issue