mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-02-22 01:46:08 -08:00
fix client-version fallback not handling channel errors (#4378)
This commit is contained in:
parent
5d1aa50753
commit
4785464332
@ -176,7 +176,15 @@
|
||||
App.Logger.WriteLine(LOG_IDENT, "Failed to contact clientsettingscdn! Falling back to clientsettings...");
|
||||
App.Logger.WriteException(LOG_IDENT, ex);
|
||||
|
||||
clientVersion = await Http.GetJson<ClientVersion>("https://clientsettings.roblox.com" + path);
|
||||
try
|
||||
{
|
||||
clientVersion = await Http.GetJson<ClientVersion>("https://clientsettings.roblox.com" + path);
|
||||
}
|
||||
catch (HttpRequestException httpEx)
|
||||
when (!isDefaultChannel && BadChannelCodes.Contains(httpEx.StatusCode))
|
||||
{
|
||||
throw new InvalidChannelException(httpEx.StatusCode);
|
||||
}
|
||||
}
|
||||
|
||||
// check if channel is behind LIVE
|
||||
|
Loading…
Reference in New Issue
Block a user