-
Notifications
You must be signed in to change notification settings - Fork 669
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
connect throw error right after disconnect #162
Comments
Can you run If this specific to any Android version or Android hardware? |
adb logcat
|
the last lines were loged by switching to the other devices, and no response any more. thank you for so fast reply from you, @don . |
I guess that the disconnect callback was invoked before the connection had really closed. |
The plugin returns success after the service is stopped. But I guess the actual socket takes some time to close. I don't think there's a better Android callback to hook into. Can you add a delay after disconnecting and before attempting the next connection? |
I will try. thank you very much! And I suggest there should be a better way to switch between devices. |
thank you, I will try it. |
hello, I have a user case like this:
User can choose different devices to connect.
But when I try to connect the other one right after I disconnected from the old one,
error throws.
The text was updated successfully, but these errors were encountered: