/** * adds a new worker to the network. * * @param s Socket * @throws IOException */ private synchronized void addNewWorkerConnection(Socket s) throws IOException { PDBTEW2Listener lt = new PDBTEW2Listener(this, s); lt.init(); getWorkers().put(s, lt); }