Update PR

* Set websocketConnected=false in cleanupCurlHandle()
* Call ws.cleanupCurlHandle() in OneDriveSocketIo.~this() before object.destroy(ws)
This commit is contained in:
abraunegg 2025-12-31 08:29:30 +11:00
commit f9edc938ea
2 changed files with 2 additions and 0 deletions

View file

@ -268,6 +268,7 @@ public:
curl_easy_cleanup(curl);
curl = null;
}
websocketConnected = false;
}
int sendText(string payload) {

View file

@ -62,6 +62,7 @@ public:
logSocketIOOutput("Attempting to destroy libcurl RFC6455 WebSocket client cleanly");
// Worker has exited; safe to close/cleanup/destroy
collectException(ws.close(1000, "client stop"));
collectException(ws.cleanupCurlHandle());
object.destroy(ws);
ws = null;
logSocketIOOutput("Destroyed libcurl RFC6455 WebSocket client cleanly");