How to stop a connecting client?

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

dingmingjing
Posts: 8
Joined: 24 Sep 2012, 08:22
Location: China Tianjin

How to stop a connecting client?

Postby dingmingjing » 02 Oct 2012, 08:38

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" ??????????
dingmingjing
Posts: 8
Joined: 24 Sep 2012, 08:22
Location: China Tianjin

Re: How to stop a connecting client?

Postby dingmingjing » 02 Oct 2012, 09:43

It was a BlueBox issue. If I desabled the BlueBox by sfsClient.setUseBlueBox(false); It works well.
User avatar
Bax
Site Admin
Posts: 4481
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: How to stop a connecting client?

Postby Bax » 03 Oct 2012, 08:24

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
User avatar
Lapo
Site Admin
Posts: 21079
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to stop a connecting client?

Postby Lapo » 26 Oct 2012, 10:30

The update is available here: http://www.smartfoxserver.com/download/sfs2x#p=updates
Let us know if it solves the problem,

Thanks!
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 3 guests