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