Add analytics even on WSS failures in the wild

This commit is contained in:
Alessandro Pignotti 2024-10-01 11:42:01 +02:00
parent a45e2bd379
commit c6ff3283d6

View file

@ -356,6 +356,7 @@ __ __ _ __ ____ __
if(image_url.startsWith(wssProtocol))
{
// WebSocket protocol failed, try agin using plain HTTP
plausible("WS Disk failure");
image_url = "https:" + image_url.substr(wssProtocol.length);
blockDevice = await CheerpX.CloudDevice.create(image_url);
}