You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The client is ran on Android 5.1.1 and my server is on an Ubuntu 14.04.
Is this because my client calls Client.connect in a temporary thread?
The text was updated successfully, but these errors were encountered:
midn1
changed the title
Server not receiving any packets sent by Android 5.1.1connected method not called on server but called on the client.
Dec 27, 2016
I was just having the same issue, but I figured it out. I was running client.addListener()afterclient.connect(...). The connect() event was fired before the listener is added. Maybe you might be having the same issue?
Running client.connect() on a temporary thread wouldn't be an issue, but if that runs before the listener is added, this could be the issue.
This is what fixed my issue too! I was looking for like an hour or two trying to figure it out and I just found this! Thanks so much even over 3 years later this still fixed my simple mistake!
The client is ran on Android 5.1.1 and my server is on an Ubuntu 14.04.
Is this because my client calls
Client.connect
in a temporary thread?The text was updated successfully, but these errors were encountered: