[SOLVED]IsConnecting flag is true forever

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
User avatar
nekokiller
Posts: 24
Joined: 23 Oct 2012, 10:13

[SOLVED]IsConnecting flag is true forever

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

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

Post by Lapo »

Can you please explain:

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

thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
nekokiller
Posts: 24
Joined: 23 Oct 2012, 10:13

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

Post by nekokiller »

ok

1) Socket
2) Manual
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

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

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
nekokiller
Posts: 24
Joined: 23 Oct 2012, 10:13

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

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

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

Post by Lapo »

IsConnecting is False as well.
I am testing with the Lobby example that we provide, calling SmartFox.Disconnect() to close the connection.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
nekokiller
Posts: 24
Joined: 23 Oct 2012, 10:13

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

Post by nekokiller »

ok, let me double check again.
User avatar
nekokiller
Posts: 24
Joined: 23 Oct 2012, 10:13

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

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

Re: [SOLVED]IsConnecting flag is true forever

Post by Lapo »

Excellent, thanks.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply