if (con.getStateCode() == RTMP.STATE_CONNECTED) {
// create a worker
SharedObjectService.submitTask(new Runnable() {
public void run() {
Red5.setConnectionLocal(con);
con.sendSharedObjectMessage(name, currentVersion, persistent, events);
Red5.setConnectionLocal(null);
}
});
} else {
log.debug("Skipping unconnected connection");