private synchronized void userHasLeft() { List<String> rooms = (List) joinedRooms.get(this.connection); if (rooms != null) { rooms.remove(this.room); cleanup(); } }
protected void finalize() throws Throwable { cleanup(); super.finalize(); }
private synchronized void userHasLeft() { List<String> rooms = (List) joinedRooms.get(this.connection); if (rooms != null) { rooms.remove(this.room); cleanup(); } }
protected void finalize() throws Throwable { cleanup(); super.finalize(); }