We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43e0596 + 024d99f commit 2efb660Copy full SHA for 2efb660
1 file changed
src/WebSocketClient.cpp
@@ -245,6 +245,7 @@ namespace cyanray
245
246
void WebSocketClient::Connect(const string& hostname, int port, const string& path)
247
{
248
+ Shutdown();
249
PrivateMembers->wsSocket = hostname_connect(hostname, port);
250
if (PrivateMembers->wsSocket == INVALID_SOCKET)
251
0 commit comments