Page 1 of 1

How to stop a connecting client?

Posted: 02 Oct 2012, 08:38
by dingmingjing
I am still testing the Android API 1.0.1 and I got more problems.

When I tried to connect to server with the wifi desabled, I got a CONNECTION_LOST event. It's expected and good. But the SmartFox connecting thread seems kept running!!!
If I try to invoke SmartFox#connect() again, I got nothing. No CONNECTION event! No CONNECTION_LOST event!

The log show there is a warning:
10-02 16:19:29.903: WARN/System.err(2146): 527709 [Thread-32] WARN sfs2x.client.SmartFox - A connection attempt is already running

The smartfox instance seems kept trying to connect to server. It doesn't really work since even I enabled wifi the client can't get connection.

I want to know how to stop the "running connection attempt" ??????????

Re: How to stop a connecting client?

Posted: 02 Oct 2012, 09:43
by dingmingjing
It was a BlueBox issue. If I desabled the BlueBox by sfsClient.setUseBlueBox(false); It works well.

Re: How to stop a connecting client?

Posted: 03 Oct 2012, 08:24
by Bax
We are working on an updated version of the Java API that should fix this issue and more. Stay tuned.

Re: How to stop a connecting client?

Posted: 26 Oct 2012, 10:30
by Lapo
The update is available here: http://www.smartfoxserver.com/download/sfs2x#p=updates
Let us know if it solves the problem,

Thanks!