зеркало из https://github.com/mozilla/pjs.git
Fix for Bug 95795 Timer on Linux doesn't work in AutoConfig
r=bnesse , sr=sfraser and a=asa
This commit is contained in:
Родитель
77be293b57
Коммит
c36b78d988
|
@ -326,11 +326,10 @@ NS_IMETHODIMP nsAutoConfig::DownloadAutoCfg()
|
|||
|
||||
// Create a new timer and pass this nsAutoConfig
|
||||
// object as a timer callback.
|
||||
nsCOMPtr<nsITimer> timer;
|
||||
timer = do_CreateInstance("@mozilla.org/timer;1",&rv);
|
||||
mTimer = do_CreateInstance("@mozilla.org/timer;1",&rv);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
rv = timer->Init(this, minutes*60*1000, NS_PRIORITY_NORMAL,
|
||||
rv = mTimer->Init(this, minutes*60*1000, NS_PRIORITY_NORMAL,
|
||||
NS_TYPE_REPEATING_SLACK);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
|
|
@ -59,4 +59,5 @@ class nsAutoConfig : public nsIAutoConfig,
|
|||
nsCString mBuf, mCurrProfile;
|
||||
nsCOMPtr<nsIPrefBranch> mPrefBranch;
|
||||
PRBool mLoaded;
|
||||
nsCOMPtr<nsITimer> mTimer;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче