зеркало из https://github.com/mozilla/gecko-dev.git
fixes bug 189699 "Current trunk does not automatically dial-up"
patch=aardvarktm@hotmail.com r=dougt sr=darin
This commit is contained in:
Родитель
c44ce2ad23
Коммит
09cb8aba1a
|
@ -60,6 +60,7 @@ nsSocketTransportService::nsSocketTransportService()
|
||||||
: mInitialized(PR_FALSE)
|
: mInitialized(PR_FALSE)
|
||||||
, mThread(nsnull)
|
, mThread(nsnull)
|
||||||
, mThreadEvent(nsnull)
|
, mThreadEvent(nsnull)
|
||||||
|
, mAutodialEnabled(PR_FALSE)
|
||||||
, mEventQLock(PR_NewLock())
|
, mEventQLock(PR_NewLock())
|
||||||
, mActiveCount(0)
|
, mActiveCount(0)
|
||||||
, mIdleCount(0)
|
, mIdleCount(0)
|
||||||
|
@ -392,13 +393,14 @@ nsSocketTransportService::CreateTransport(const char **types,
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsSocketTransportService::GetAutodialEnabled(PRBool *value)
|
nsSocketTransportService::GetAutodialEnabled(PRBool *value)
|
||||||
{
|
{
|
||||||
*value = PR_FALSE;
|
*value = mAutodialEnabled;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
nsSocketTransportService::SetAutodialEnabled(PRBool value)
|
nsSocketTransportService::SetAutodialEnabled(PRBool value)
|
||||||
{
|
{
|
||||||
|
mAutodialEnabled = value;
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -153,6 +153,9 @@ private:
|
||||||
nsIThread *mThread;
|
nsIThread *mThread;
|
||||||
PRFileDesc *mThreadEvent;
|
PRFileDesc *mThreadEvent;
|
||||||
|
|
||||||
|
// pref to control autodial code
|
||||||
|
PRBool mAutodialEnabled;
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
// event queue (any thread)
|
// event queue (any thread)
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
|
|
Загрузка…
Ссылка в новой задаче