Page 1 of 1

[SOLVED]IsConnecting flag is true forever

Posted: 14 Mar 2013, 09:32
by nekokiller
Hi, Lapo:

I just download the SFS2X_API_CSharp_v1.1.0 and compare with v1.0.9.
There is a new strange problem: the IsConnecting flag will be true forever after first time connection success.
Even if we do disconnect(), after connection lost , the IsConnecting is still be true.
eh, I think this may be a bug.

Re: IsConnecting flag is true forever [v1.1.0]

Posted: 14 Mar 2013, 10:08
by Lapo
Can you please explain:

1) How are you connected? Socket? Bluebox
2) The cause of disconnection? Manual? Kick? Abrupt network disconnection?

thanks

Re: IsConnecting flag is true forever [v1.1.0]

Posted: 14 Mar 2013, 10:23
by nekokiller
ok

1) Socket
2) Manual

Re: IsConnecting flag is true forever [v1.1.0]

Posted: 14 Mar 2013, 11:10
by Lapo
Would you mind double checking that you are really using version 1.1.0?
Because I don't see anything out of order. I get the disconnection event, with reason = manual and the IsConnected returns False as expected.

Tested under Unity 3.5.7f6

Re: IsConnecting flag is true forever [v1.1.0]

Posted: 14 Mar 2013, 11:15
by nekokiller
Lapo wrote:Would you mind double checking that you are really using version 1.1.0?
Because I don't see anything out of order. I get the disconnection event, with reason = manual and the IsConnected returns False as expected.

Tested under Unity 3.5.7f6
Oh, sure, I have print the version number of smart fox in the console, it shows 1.1.0

Eh, you just said the 'IsConnected' returns False.

But what I said is the 'IsConnecting' flag, not the 'IsConnected' flag.

The IsConnected Flag works fine , but the IsConnecting flag.

Re: IsConnecting flag is true forever [v1.1.0]

Posted: 14 Mar 2013, 11:30
by Lapo
IsConnecting is False as well.
I am testing with the Lobby example that we provide, calling SmartFox.Disconnect() to close the connection.

Re: IsConnecting flag is true forever [v1.1.0]

Posted: 14 Mar 2013, 12:39
by nekokiller
ok, let me double check again.

Re: IsConnecting flag is true forever [v1.1.0]

Posted: 15 Mar 2013, 01:25
by nekokiller
Lapo wrote:IsConnecting is False as well.
I am testing with the Lobby example that we provide, calling SmartFox.Disconnect() to close the connection.
Oh, Sorry, I found a mistake in my testing code.
There is no problem with v1.1.0.
Thanks.

Re: [SOLVED]IsConnecting flag is true forever

Posted: 15 Mar 2013, 07:33
by Lapo
Excellent, thanks.