Why _smartFox.isConnected is not right

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

zzc11414
Posts: 59
Joined: 26 Jun 2012, 03:17

Why _smartFox.isConnected is not right

Postby zzc11414 » 18 Aug 2012, 17:20

I will judge if client(object-c ios) is connected to server. so I use _smartFox.isConnected.But I found that the result is false even if the client has't disconnected from sever which lead to error:"login error:Another user is already logged with the same name" in the login process.I have looked at the log of the server.Surely the client is not discennected from server.But the judgement _smartFox.isConnected return false.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Why _smartFox.isConnected is not right

Postby Lapo » 19 Aug 2012, 16:47

Moved to the correct section.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
A51Integrated
Posts: 240
Joined: 03 Jan 2012, 19:55
Location: Toronto, Canada
Contact:

Re: Why _smartFox.isConnected is not right

Postby A51Integrated » 19 Aug 2012, 19:25

Try:

Code: Select all

[_smartFox isConnected];

instead.
A51 Integrated
http://a51integrated.com / +1 416-703-2300

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 38 guests