private void sendSOCreationFailed ( RTMPConnection conn , SharedObjectMessage message ) { log . debug ( "sendSOCreationFailed - message: {} conn: {}" , message , conn ) ; // reset the object so we can re-use it message . reset ( ) ; // add the error event message . addEvent ( new SharedObjectEvent ( ISharedObjectEvent . Type . CLIENT_STATUS , "error" , SO_CREATION_FAILED ) ) ; if ( conn . isChannelUsed ( 3 ) ) { // XXX Paul: I dont like this direct write stuff, need to move to event-based conn . getChannel ( 3 ) . write ( message ) ; } else { log . warn ( "Channel is not in-use and cannot handle SO event: {}" , message , new Exception ( "SO event handling failure" ) ) ; // XXX Paul: I dont like this direct write stuff, need to move to event-based conn . getChannel ( 3 ) . write ( message ) ; } }
Create and send SO message stating that a SO could not be created .