Browse Source

SHUT_RDWR is now always defined for us, so no need to check ifdef on LP hang

Luke Dashjr 13 years ago
parent
commit
1974544f56
1 changed files with 1 additions and 7 deletions
  1. 1 7
      miner.c

+ 1 - 7
miner.c

@@ -1655,13 +1655,7 @@ static bool work_decode(const json_t *val, struct work *work)
 			if (sock != CURL_SOCKET_BAD) {
 				pool->lp_socket = CURL_SOCKET_BAD;
 				applog(LOG_WARNING, "Pool %u long poll request hanging, reconnecting", pool->pool_no);
-				shutdown(sock,
-#ifndef WIN32
-				         SHUT_RDWR
-#else
-				         SD_BOTH
-#endif
-				);
+				shutdown(sock, SHUT_RDWR);
 			}
 #endif
 		}