From 1f68a5a98b2a4b901aac8d400dedb16bceb13e2f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 3 Oct 2014 22:16:30 +1000 Subject: [PATCH] Use the Close handler in the stratifier --- src/stratifier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 332d0e62..4c6fb620 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -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;