measure chat window invokes
Missing NPE check on equals
synchronized block on atomic reference unnecessary, also a bad idea having a sleep inside synchronized block.
was calling equals on different classes, not sure how this was even working.