Skip to content

Commit a9bec68

Browse files
author
chengxin
committed
【FIX】断开连接的时候自动重连的定时任务也取消掉
1 parent f80f2b4 commit a9bec68

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)