From dc43cb740b78d0fcbe9ef62bec856cbe603172f6 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Mon, 30 Oct 2017 07:29:40 -0500 Subject: [PATCH] added an assert --- connection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/connection.cpp b/connection.cpp index 6e16e88..0a5309d 100644 --- a/connection.cpp +++ b/connection.cpp @@ -297,6 +297,7 @@ conv_manager_t::~conv_manager_t() assert(oppsite_const_id==0); } } + assert(timer_fd64==0); //if(oppsite_const_id!=0) //do this at conn_manager 's deconstuction function //conn_manager.const_id_mp.erase(oppsite_const_id); if(blob!=0) @@ -388,6 +389,7 @@ conv_manager_t::~conv_manager_t() fd_manager.fd64_close(erase_it->second->timer_fd64); + erase_it->second->timer_fd64=0; //timer_fd_mp.erase(erase_it->second->timer_fd); //close(erase_it->second->timer_fd);// close will auto delte it from epoll delete(erase_it->second);