File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,6 @@ tcp_client_t* tcp_client_new(hloop_t* loop) {
126
126
void tcp_client_free (tcp_client_t * cli ) {
127
127
if (!cli ) return ;
128
128
hmutex_destroy (& cli -> mutex_ );
129
- if (cli -> reconn_timer ) {
130
- htimer_del (cli -> reconn_timer );
131
- cli -> reconn_timer = NULL ;
132
- }
133
129
if (cli -> ssl_ctx && cli -> alloced_ssl_ctx ) {
134
130
hssl_ctx_free (cli -> ssl_ctx );
135
131
cli -> ssl_ctx = NULL ;
Original file line number Diff line number Diff line change @@ -368,10 +368,6 @@ mqtt_client_t* mqtt_client_new(hloop_t* loop) {
368
368
void mqtt_client_free (mqtt_client_t * cli ) {
369
369
if (!cli ) return ;
370
370
hmutex_destroy (& cli -> mutex_ );
371
- if (cli -> reconn_timer ) {
372
- htimer_del (cli -> reconn_timer );
373
- cli -> reconn_timer = NULL ;
374
- }
375
371
if (cli -> ssl_ctx && cli -> alloced_ssl_ctx ) {
376
372
hssl_ctx_free (cli -> ssl_ctx );
377
373
cli -> ssl_ctx = NULL ;
You can’t perform that action at this time.
0 commit comments