src/net/java/sip/communicator/service/protocol/media/TransportManager.java
/**
     * Closes the existing <tt>StreamConnector</tt>, if any, associated with a
     * specific <tt>MediaType</tt> and removes its reference from this
     * <tt>TransportManager</tt>.
     *
     * @param mediaType the <tt>MediaType</tt> associated with the
     * <tt>StreamConnector</tt> to close
     */
Closes the existing StreamConnector, if any, associated with a
specific MediaType and removes its reference from this
TransportManager.

@param mediaType the MediaType associated with the
StreamConnector to close
Closes the existing StreamConnector if any associated with a specific MediaType and removes its reference from this TransportManager . @param mediaType the MediaType associated with the StreamConnector to close
public void closeStreamConnector(MediaType mediaType)
    {
        int index = mediaType.ordinal();
        StreamConnector streamConnector = streamConnectors[index];
        if (streamConnector != null)
        {
            try
            {
                closeStreamConnector(mediaType, streamConnector);
            }
            catch (OperationFailedException e)
            {
                logger.error("Failed to close stream connector for " + mediaType, e);
            }
            streamConnectors[index] = null;
        }
    }
public void closeStreamConnector ( MediaType mediaType ) { int index = mediaType . ordinal ( ) ; StreamConnector streamConnector = streamConnectors [ index ] ; if ( streamConnector != null ) { try { closeStreamConnector ( mediaType , streamConnector ) ; } catch ( OperationFailedException e ) { logger . error ( "Failed to close stream connector for " + mediaType , e ) ; } streamConnectors [ index ] = null ; } }
Closes the existing <tt>StreamConnector</tt>, if any, associated with a
 specific <tt>MediaType</tt> and removes its reference from this
 <tt>TransportManager</tt>.
Closes the existing <tt > StreamConnector< / tt > if any associated with a specific <tt > MediaType< / tt > and removes its reference from this <tt > TransportManager< / tt > .