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 - Register listener before connecting to srever #44

Open
ghost opened this issue Nov 12, 2013 · 0 comments
Open

Client - Register listener before connecting to srever #44

ghost opened this issue Nov 12, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 12, 2013

From [email protected] on October 12, 2013 22:19:49

This might be obvious to many people, but when i set the client up for the first time with my own listener, it didn't occur to me that the registering of the listener, had to be before the connection to the server. And i don't see any mentioning of it.

It will still work if the connection to the server is slower than what it takes to add the listener. So it's a problem where sometimes it works perfectly, and sometimes it doesn't work at all.

Maybe tell people with some bold text, that the registering the listener has to be before client.connect() so nobody will run into the same problem again?

Original issue: http://code.google.com/p/kryonet/issues/detail?id=43

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

No branches or pull requests

0 participants