]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed timer related bug
authorKarsten Ballüder <ballueder@usa.net>
Mon, 25 Oct 1999 20:06:32 +0000 (20:06 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Mon, 25 Oct 1999 20:06:32 +0000 (20:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/dialup.cpp

index cec1aa24d1969f8c2566422d38754205b464023c..5d149d8c245eeca3b6dca88a65c08512ccd4f51f 100644 (file)
@@ -251,11 +251,13 @@ wxDialUpManagerImpl::wxDialUpManagerImpl()
    m_BeaconHost = WXDIALUP_MANAGER_DEFAULT_BEACONHOST;
    m_BeaconPort = 80;
    SetConnectCommand("pon", "poff"); // default values for Debian/GNU linux
+#if 0
    wxChar * dial = wxGetenv(_T("WXDIALUP_DIALCMD"));
    wxChar * hup = wxGetenv(_T("WXDIALUP_HUPCMD"));
    if(dial || hup)
       SetConnectCommand(dial ? wxString(dial) : m_ConnectCommand,
                         hup ? wxString(hup) : m_HangUpCommand); 
+#endif
 }
 
 wxDialUpManagerImpl::~wxDialUpManagerImpl()
@@ -332,7 +334,7 @@ wxDialUpManagerImpl::CancelDialing()
 bool
 wxDialUpManagerImpl::EnableAutoCheckOnlineStatus(size_t nSeconds)
 {
-   wxASSERT(m_timer == NULL);
+   DisableAutoCheckOnlineStatus();
    m_timer = new AutoCheckTimer(this);
    bool rc = m_timer->Start(nSeconds*1000);
    if(! rc)