Fix for Bug 95795 Timer on Linux doesn't work in AutoConfig

r=bnesse , sr=sfraser and a=asa
This commit is contained in:
mitesh%netscape.com 2001-08-22 23:58:12 +00:00
Родитель 77be293b57
Коммит c36b78d988
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -326,11 +326,10 @@ NS_IMETHODIMP nsAutoConfig::DownloadAutoCfg()
// Create a new timer and pass this nsAutoConfig // Create a new timer and pass this nsAutoConfig
// object as a timer callback. // object as a timer callback.
nsCOMPtr<nsITimer> timer; mTimer = do_CreateInstance("@mozilla.org/timer;1",&rv);
timer = do_CreateInstance("@mozilla.org/timer;1",&rv);
if (NS_FAILED(rv)) if (NS_FAILED(rv))
return 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); NS_TYPE_REPEATING_SLACK);
if (NS_FAILED(rv)) if (NS_FAILED(rv))
return rv; return rv;

Просмотреть файл

@ -59,4 +59,5 @@ class nsAutoConfig : public nsIAutoConfig,
nsCString mBuf, mCurrProfile; nsCString mBuf, mCurrProfile;
nsCOMPtr<nsIPrefBranch> mPrefBranch; nsCOMPtr<nsIPrefBranch> mPrefBranch;
PRBool mLoaded; PRBool mLoaded;
nsCOMPtr<nsITimer> mTimer;
}; };