[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

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

[SOLVED]IsConnecting flag is true forever

Postby nekokiller » 14 Mar 2013, 09:32

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: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

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

Postby Lapo » 14 Mar 2013, 10:08

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]

Postby nekokiller » 14 Mar 2013, 10:23

ok

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

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

Postby Lapo » 14 Mar 2013, 11:10

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]

Postby nekokiller » 14 Mar 2013, 11:15

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: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

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

Postby Lapo » 14 Mar 2013, 11:30

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]

Postby nekokiller » 14 Mar 2013, 12:39

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]

Postby nekokiller » 15 Mar 2013, 01:25

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: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: [SOLVED]IsConnecting flag is true forever

Postby Lapo » 15 Mar 2013, 07:33

Excellent, thanks.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 19 guests