mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Update PR
* Set websocketConnected=false in cleanupCurlHandle() * Call ws.cleanupCurlHandle() in OneDriveSocketIo.~this() before object.destroy(ws)
This commit is contained in:
parent
a0418c506e
commit
f9edc938ea
2 changed files with 2 additions and 0 deletions
|
|
@ -268,6 +268,7 @@ public:
|
|||
curl_easy_cleanup(curl);
|
||||
curl = null;
|
||||
}
|
||||
websocketConnected = false;
|
||||
}
|
||||
|
||||
int sendText(string payload) {
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue