]> git.saurik.com Git - wxWidgets.git/commitdiff
bug fix for disable auto poll
authorKarsten Ballüder <ballueder@usa.net>
Mon, 25 Oct 1999 12:54:31 +0000 (12:54 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Mon, 25 Oct 1999 12:54:31 +0000 (12:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/unix/dialup.cpp

index 3a345a7dbbaa70e826bf3d80726cdbe9c35cae00..cec1aa24d1969f8c2566422d38754205b464023c 100644 (file)
@@ -346,10 +346,12 @@ wxDialUpManagerImpl::EnableAutoCheckOnlineStatus(size_t nSeconds)
 void
 wxDialUpManagerImpl::DisableAutoCheckOnlineStatus()
 {
-   wxASSERT(m_timer != NULL);
-   m_timer->Stop();
-   delete m_timer;
-   m_timer = NULL;
+   if(m_timer != NULL)
+   {
+      m_timer->Stop();
+      delete m_timer;
+      m_timer = NULL;
+   }
 }