diff --git a/a8/asynctcpclient.cc b/a8/asynctcpclient.cc index 71502ba..ed1c2c9 100644 --- a/a8/asynctcpclient.cc +++ b/a8/asynctcpclient.cc @@ -27,9 +27,13 @@ namespace a8 AsyncTcpClient::~AsyncTcpClient() { + // 999 + #if 1 + #else if (!list_empty(&connect_timer_attacher.timer_list_)) { abort(); } + #endif Close(); A8_SAFE_DELETE(send_buffer_mutex_); } diff --git a/a8/asynctcpclient.h b/a8/asynctcpclient.h index c0885c7..952f950 100644 --- a/a8/asynctcpclient.h +++ b/a8/asynctcpclient.h @@ -17,7 +17,7 @@ namespace a8 std::string remote_address; int remote_port = 0; int timeout_ms = 1000 * 10; - a8::XTimerAttacher connect_timer_attacher; + a8::Attacher connect_timer_attacher; std::atomic ref_count; AsyncTcpClient();