Fixed auto update URL being set too late (bug 3699, r=pred).

This commit is contained in:
David Anderson 2009-03-16 18:43:34 -04:00
parent 5b21fc89fc
commit 2e176b8b8d

View File

@ -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;
}