Update curlWebsockets.d

* Remove unsafe call
This commit is contained in:
abraunegg 2025-12-27 21:31:26 +11:00
commit 7b1b65b9f4

View file

@ -252,11 +252,7 @@ public:
auto rc = sendAll(frame);
// Even if sending fails, cleanup below so we dont leak.
collectException(logCurlWebsocketOutput("Sending RFC6455 Close (code=" ~ to!string(code) ~ ")"));
// Clean up curl handle
if (curl !is null) {
curl_easy_cleanup(curl);
curl = null;
}
// Flag we are no longer connected with the websocket
websocketConnected = false;
return rc;
}