fixed timer related bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -251,11 +251,13 @@ wxDialUpManagerImpl::wxDialUpManagerImpl()
|
|||||||
m_BeaconHost = WXDIALUP_MANAGER_DEFAULT_BEACONHOST;
|
m_BeaconHost = WXDIALUP_MANAGER_DEFAULT_BEACONHOST;
|
||||||
m_BeaconPort = 80;
|
m_BeaconPort = 80;
|
||||||
SetConnectCommand("pon", "poff"); // default values for Debian/GNU linux
|
SetConnectCommand("pon", "poff"); // default values for Debian/GNU linux
|
||||||
|
#if 0
|
||||||
wxChar * dial = wxGetenv(_T("WXDIALUP_DIALCMD"));
|
wxChar * dial = wxGetenv(_T("WXDIALUP_DIALCMD"));
|
||||||
wxChar * hup = wxGetenv(_T("WXDIALUP_HUPCMD"));
|
wxChar * hup = wxGetenv(_T("WXDIALUP_HUPCMD"));
|
||||||
if(dial || hup)
|
if(dial || hup)
|
||||||
SetConnectCommand(dial ? wxString(dial) : m_ConnectCommand,
|
SetConnectCommand(dial ? wxString(dial) : m_ConnectCommand,
|
||||||
hup ? wxString(hup) : m_HangUpCommand);
|
hup ? wxString(hup) : m_HangUpCommand);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
wxDialUpManagerImpl::~wxDialUpManagerImpl()
|
wxDialUpManagerImpl::~wxDialUpManagerImpl()
|
||||||
@@ -332,7 +334,7 @@ wxDialUpManagerImpl::CancelDialing()
|
|||||||
bool
|
bool
|
||||||
wxDialUpManagerImpl::EnableAutoCheckOnlineStatus(size_t nSeconds)
|
wxDialUpManagerImpl::EnableAutoCheckOnlineStatus(size_t nSeconds)
|
||||||
{
|
{
|
||||||
wxASSERT(m_timer == NULL);
|
DisableAutoCheckOnlineStatus();
|
||||||
m_timer = new AutoCheckTimer(this);
|
m_timer = new AutoCheckTimer(this);
|
||||||
bool rc = m_timer->Start(nSeconds*1000);
|
bool rc = m_timer->Start(nSeconds*1000);
|
||||||
if(! rc)
|
if(! rc)
|
||||||
|
Reference in New Issue
Block a user