Crash auto recovery

in the worst way possible
This commit is contained in:
Natsumi
2025-12-23 00:43:04 +13:00
parent 9b20d62a90
commit 3a8627fd0e
6 changed files with 46 additions and 23 deletions

View File

@@ -80,7 +80,7 @@ namespace VRCX
break;
case CefTerminationStatus.ProcessCrashed:
_logger.Error("Browser crashed while.");
_logger.Error("Browser crashed.");
break;
case CefTerminationStatus.OutOfMemory:
@@ -91,6 +91,12 @@ namespace VRCX
_logger.Error($"Browser terminated with unhandled status '{status}' while at address.");
break;
}
if (chromiumWebBrowser.IsDisposed || chromiumWebBrowser.IsLoading)
return;
_logger.Info("Attempting to reload browser...");
chromiumWebBrowser.Reload();
}
}
}