added an assert

This commit is contained in:
wangyu- 2017-10-30 07:29:40 -05:00
parent 2e6be9e159
commit dc43cb740b

View File

@ -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);