mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
fix client-version fallback not handling channel errors
This commit is contained in:
parent
5d1aa50753
commit
cf2f2b3393
@ -176,8 +176,16 @@
|
|||||||
App.Logger.WriteLine(LOG_IDENT, "Failed to contact clientsettingscdn! Falling back to clientsettings...");
|
App.Logger.WriteLine(LOG_IDENT, "Failed to contact clientsettingscdn! Falling back to clientsettings...");
|
||||||
App.Logger.WriteException(LOG_IDENT, ex);
|
App.Logger.WriteException(LOG_IDENT, ex);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
clientVersion = await Http.GetJson<ClientVersion>("https://clientsettings.roblox.com" + path);
|
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
|
// check if channel is behind LIVE
|
||||||
if (!isDefaultChannel)
|
if (!isDefaultChannel)
|
||||||
|
Loading…
Reference in New Issue
Block a user