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