System.out.println("Listening port " + config.port);
while (true) {
Socket clientSocket = socket.accept();
cb.onClientConnected();
System.out.println("New client connected");
SessionHandler worker = new SessionHandler(clientSocket, testIds, testsTime);
worker.setSessionCallback(cb);
new Thread(worker).start();
}
} catch (IOException e) {
// Nothing to do. Socket is dead
}