This commit is contained in:
aozhiwei 2022-12-13 18:30:49 +08:00
parent ab63235836
commit 903d7d9b56
2 changed files with 5 additions and 1 deletions

View File

@ -27,9 +27,13 @@ namespace a8
AsyncTcpClient::~AsyncTcpClient() AsyncTcpClient::~AsyncTcpClient()
{ {
// 999
#if 1
#else
if (!list_empty(&connect_timer_attacher.timer_list_)) { if (!list_empty(&connect_timer_attacher.timer_list_)) {
abort(); abort();
} }
#endif
Close(); Close();
A8_SAFE_DELETE(send_buffer_mutex_); A8_SAFE_DELETE(send_buffer_mutex_);
} }

View File

@ -17,7 +17,7 @@ namespace a8
std::string remote_address; std::string remote_address;
int remote_port = 0; int remote_port = 0;
int timeout_ms = 1000 * 10; int timeout_ms = 1000 * 10;
a8::XTimerAttacher connect_timer_attacher; a8::Attacher connect_timer_attacher;
std::atomic<long long> ref_count; std::atomic<long long> ref_count;
AsyncTcpClient(); AsyncTcpClient();