Skip to content

Commit 87043cd

Browse files
Fix issue with Windows in hueplusplus library
1 parent 2aaf701 commit 87043cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dependencies/hueplusplus-1.0.0/src/WinHttpHandler.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ std::string WinHttpHandler::send(const std::string& msg, const std::string& adr,
137137

138138
// shutdown the connection for sending since no more data will be sent
139139
// the client can still use the ConnectSocket for receiving data
140-
if (shutdown(connect_socket, SD_SEND) == SOCKET_ERROR)
141-
{
142-
int err = WSAGetLastError();
143-
std::cerr << "WinHttpHandler: shutdown failed: " << err << std::endl;
144-
throw(std::system_error(err, std::system_category(), "WinHttpHandler: shutdown failed"));
145-
}
140+
//if (shutdown(connect_socket, SD_SEND) == SOCKET_ERROR)
141+
//{
142+
// int err = WSAGetLastError();
143+
// std::cerr << "WinHttpHandler: shutdown failed: " << err << std::endl;
144+
// throw(std::system_error(err, std::system_category(), "WinHttpHandler: shutdown failed"));
145+
//}
146146

147147
const int recvbuflen = 128;
148148
char recvbuf[recvbuflen];

0 commit comments

Comments
 (0)