bug fix for disable auto poll

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder 1999-10-25 12:54:31 +00:00
parent 8cf1c13cfa
commit 997bba3675

View 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;
}
}