Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client 调用close函数之后,回调中使用connect,会进入之前设置的ConnectCallback中吗? #5

Closed
windowcc opened this issue Jun 20, 2019 · 5 comments

Comments

@windowcc
Copy link

No description provided.

@windowcc
Copy link
Author

client->close([client](auto name)
{
client->connect();
// delete client;
});

setConnectCallback([this](bool status)->void{
if(status)
{
}
else
{
}
});

客户端主动断开连接, 再close的回调中重新connect, 为什么没有进入到connect的回调函数?

@windowcc
Copy link
Author

断开之后重新连接, 数据无法发送和接收

@wlgq2
Copy link
Owner

wlgq2 commented Jun 23, 2019

你好,是一个bug,v0.1.3已修复。

@windowcc
Copy link
Author

谢谢, 我之前自己也调试了一下, 解决了这个问题. 我看下你是怎么解决的.

@windowcc
Copy link
Author

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants