How to stop a connecting client?
Posted: 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" ??????????
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" ??????????