From 903d7d9b560f94804f086a50debda2b622a2add6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 13 Dec 2022 18:30:49 +0800 Subject: [PATCH] 1 --- a8/asynctcpclient.cc | 4 ++++ a8/asynctcpclient.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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();