Skip to content

Commit b6475a8

Browse files
committed
Merge branch 'dev_tcp_client_chengxin' into 'feature_tcp_client'
【FIX】断开连接的时候自动重连的定时任务也取消掉 See merge request server/openapi/openapi-cpp-sdk!19
2 parents e5578b7 + a9bec68 commit b6475a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/push_socket/push_socket.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ void TIGER_API::PushSocket::disconnect()
9696
keep_alive_timer_->cancel();
9797
}
9898

99+
if (reconnect_timer_)
100+
{
101+
reconnect_timer_->cancel();
102+
}
103+
99104
close_session();
100105
}
101106

0 commit comments

Comments
 (0)