]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/dialup.cpp
bug fix for disable auto poll
[wxWidgets.git] / src / unix / dialup.cpp
index 3a345a7dbbaa70e826bf3d80726cdbe9c35cae00..cec1aa24d1969f8c2566422d38754205b464023c 100644 (file)
@@ -346,10 +346,12 @@ wxDialUpManagerImpl::EnableAutoCheckOnlineStatus(size_t nSeconds)
 void
 wxDialUpManagerImpl::DisableAutoCheckOnlineStatus()
 {
 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;
+   }
 }
 
 
 }