Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Bug: StreamManager.isP2P() throws Error 1009

Avatar

Avatar
Validate 1
Level 1
mjt333
Level 1

Like

1 like

Total Posts

19 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
mjt333
Level 1

Like

1 like

Total Posts

19 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mjt333
Level 1

23-11-2011

after a session connects to a room, and then ConnectSession.logout() is called.  The offending code from isP2P():

var uri:String = (_connectSession.sessionInternals.session_internal::connection as NetConnection).uri ;

if ( uri.split(":")[0] != "rtmfp" ) {

    _isP2P = false ;

    return _isP2P ;

}

At some point in the logout process "uri" is set to null, although the connection object still exists and some of its properties are still set (e.g. maxPeerConnections).

Ideally, this function should return false when called on a closed stream and not throw an RTE.

Thanks,

Mike

Replies

Avatar

Avatar
Boost 50
Employee
Raff_
Employee

Likes

80 likes

Total Posts

758 posts

Correct Reply

75 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Raff_
Employee

Likes

80 likes

Total Posts

758 posts

Correct Reply

75 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Raff_
Employee

28-11-2011

we'll add this to the fixes for next release. Thanks for reporting it!

Avatar

Avatar
Boost 5
Employee
aponnusa
Employee

Likes

46 likes

Total Posts

455 posts

Correct Reply

53 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Employee
aponnusa
Employee

Likes

46 likes

Total Posts

455 posts

Correct Reply

53 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
aponnusa
Employee

05-12-2011

Hey Mike,

Sorry about the delayed reply, but why are invoking LCCS functions after you logout ?

So part of your code, is checking for isP2P API method in streammanager after logging out. So were you able to figure out the offending piece of code in your source.

Thanks

Arun