Use the Close handler in the stratifier
This commit is contained in:
parent
5a9eb76488
commit
1f68a5a98b
@ -1238,18 +1238,18 @@ retry:
|
||||
dealloc(buf);
|
||||
buf = recv_unix_msg(sockd);
|
||||
if (!buf) {
|
||||
close(sockd);
|
||||
Close(sockd);
|
||||
LOGWARNING("Failed to get message in stratum_loop");
|
||||
goto retry;
|
||||
}
|
||||
if (cmdmatch(buf, "ping")) {
|
||||
LOGDEBUG("Stratifier received ping request");
|
||||
send_unix_msg(sockd, "pong");
|
||||
close(sockd);
|
||||
Close(sockd);
|
||||
goto retry;
|
||||
}
|
||||
|
||||
close(sockd);
|
||||
Close(sockd);
|
||||
LOGDEBUG("Stratifier received request: %s", buf);
|
||||
if (cmdmatch(buf, "shutdown")) {
|
||||
ret = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user