fixed memory access violations in test_dns: cancelled a timer on dying io_service
[pingcheck] / src / dns / dnscache.cpp
index 7fab114..a15947d 100644 (file)
@@ -113,9 +113,6 @@ DnsCache::~DnsCache()
 
 void DnsCache::schedule_save(const boost::system::error_code &error)
 {
-    // just in case: ensure SaveTimer is cancelled
-    SaveTimer.cancel();  // (will do nothing if already expired/cancelled)
-
     if ( error ==  boost::asio::error::operation_aborted )   // cancelled
     {
         GlobalLogger.info() << "DnsCache: SaveTimer was cancelled "