EsotericSoftware / EsotericSoftware/kryonet

Client - Register listener before connecting to srever

Open
#44 0 comments 0 reactions 0 assignees View on GitHub
bug imported Priority-Medium
Dominant language
Java
Stars
1.9k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

_From [madsen...@gmail.com](https://code.google.com/u/108694847130688967522/) 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.