protected void deregisterSocket(Socket socket) { TimerTask task = (TimerTask) this.socketActivity.remove(socket); if (task != null) { task.cancel(); } super.deregisterSocket(socket); }