Fix missing close socket in connector

This commit is contained in:
Con Kolivas 2014-05-18 21:24:30 +10:00
parent 29a8235c64
commit f07fb994ed

View File

@ -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;
}