Fix missing close socket in connector
This commit is contained in:
parent
29a8235c64
commit
f07fb994ed
@ -455,15 +455,14 @@ retry:
|
||||
}
|
||||
|
||||
buf = recv_unix_msg(sockd);
|
||||
close(sockd);
|
||||
if (!buf) {
|
||||
close(sockd);
|
||||
LOGWARNING("Failed to get message in connector_loop");
|
||||
goto retry;
|
||||
}
|
||||
if (!strncasecmp(buf, "ping", 4)) {
|
||||
LOGDEBUG("Connector received ping request");
|
||||
send_unix_msg(sockd, "pong");
|
||||
close(sockd);
|
||||
goto retry;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user