lock.release();
if (interrupted && log.isInfoEnabled()) {
log.info("Released lock after interruption. session {}, permits {}", conn.getSessionId(), lock.availablePermits());
}
}
<BUG>if (prev != null) {
Red5.setConnectionLocal(prev);
</BUG>
}
} else {

lock.release();
if (interrupted && log.isInfoEnabled()) {
log.info("Released lock after interruption. session {}, permits {}", conn.getSessionId(), lock.availablePermits());
}
}
if (localConn != null) {
Red5.setConnectionLocal(localConn);
}
} else {
