log.warn("Erhhh... Raw write. Shouldn't be in here!");
}
@Override
public void write(Packet packet) {
IMRTMPConnection conn = mrtmpManager.lookupMRTMPConnection(this);
if (conn == null) {
// the connect is gone
log.debug("Client " + getId() + " is gone!");
return;
}
if (!type.equals(PERSISTENT)) {
mrtmpManager.associate(this, conn);
}
log.debug("Origin writing packet to client " + getId() + ":" + packet.getMessage());
conn.write(getId(), packet);
}