From: Karsten Ballüder Date: Mon, 25 Oct 1999 12:54:31 +0000 (+0000) Subject: bug fix for disable auto poll X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/997bba367501ec4798785cfaf4a05d2b2d1218cf bug fix for disable auto poll git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/dialup.cpp b/src/unix/dialup.cpp index 3a345a7dbb..cec1aa24d1 100644 --- a/src/unix/dialup.cpp +++ b/src/unix/dialup.cpp @@ -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; + } }