google-code-export / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
1 stars 3 forks source link

jWebSocketJavaSEClient org.jwebsocket.client.token.BaseTokenClient problem #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The "processPacket" method support for response callbacks has a bit bug.

The response callbacks checks is inside the "for (WebSocketClientListener 
lListener : getListeners()) {...", so if there are not listeners, response 
callbacks are never executed.

I solved it moving the response callback support out of the for... estructure 
to the top of the method.

Best Regards,
Rolando

Original issue reported on code.google.com by kyberne...@gmail.com on 14 Nov 2011 at 9:50