Highlighted

Bug: StreamManager.isP2P() throws Error 1009

mjt333

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

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