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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Bug: StreamManager.isP2P() throws Error 1009


Level 2

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.



2 Replies



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



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.