Fixed auto update URL being set too late (bug 3699, r=pred).
This commit is contained in:
parent
5b21fc89fc
commit
2e176b8b8d
@ -56,6 +56,13 @@ bool SmUpdater::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
||||
|
||||
SM_GET_IFACE(WEBTERNET, webternet);
|
||||
|
||||
const char *url = smutils->GetCoreConfigValue("AutoUpdateURL");
|
||||
if (url == NULL)
|
||||
{
|
||||
url = DEFAULT_UPDATE_URL;
|
||||
}
|
||||
update_url.assign(url);
|
||||
|
||||
ThreadParams params;
|
||||
params.flags = Thread_Default;
|
||||
params.prio = ThreadPrio_Low;
|
||||
@ -67,13 +74,6 @@ bool SmUpdater::SDK_OnLoad(char *error, size_t maxlength, bool late)
|
||||
return false;
|
||||
}
|
||||
|
||||
const char *url = smutils->GetCoreConfigValue("AutoUpdateURL");
|
||||
if (url == NULL)
|
||||
{
|
||||
url = DEFAULT_UPDATE_URL;
|
||||
}
|
||||
update_url.assign(url);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user