Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Can't connect again to the peer after calling disconnect on Android #1832

Open
chapko opened this issue Mar 20, 2017 · 0 comments
Open

Can't connect again to the peer after calling disconnect on Android #1832

chapko opened this issue Mar 20, 2017 · 0 comments

Comments

@chapko
Copy link
Contributor

chapko commented Mar 20, 2017

ThaliMobile.disconnect() destroys peer listener. Any future attempts to connect to the same peer will fail because peer listener is created only after receiving 'nonTCPPeerAvailabilityChanged' event from the native layer.

Mainly it affects thaliPeerPoolOneAtATime which uses _terminateOutgoingConnection directly. When there are several actions in the queue and the current one ends peer pool destroys peer listener. If the remote peer don't have updates anymore, then the rest of the actions are doomed to fail.

#1527 would fix this issue but these changes are complex on its own.

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

No branches or pull requests

1 participant