Fix for Bug 95795 Timer on Linux doesn't work in AutoConfig
r=bnesse , sr=sfraser and a=asa git-svn-id: svn://10.0.0.236/trunk@101664 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
055cb216bc
commit
bd06551cdd
@ -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;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user