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" ??????????
How to stop a connecting client?
-
- Posts: 8
- Joined: 24 Sep 2012, 08:22
- Location: China Tianjin
-
- Posts: 8
- Joined: 24 Sep 2012, 08:22
- Location: China Tianjin
Re: How to stop a connecting client?
It was a BlueBox issue. If I desabled the BlueBox by sfsClient.setUseBlueBox(false); It works well.
Re: How to stop a connecting client?
We are working on an updated version of the Java API that should fix this issue and more. Stay tuned.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: How to stop a connecting client?
The update is available here: http://www.smartfoxserver.com/download/sfs2x#p=updates
Let us know if it solves the problem,
Thanks!
Let us know if it solves the problem,
Thanks!
Return to “SFS2X Java / Android API”
Who is online
Users browsing this forum: No registered users and 12 guests