try {
System.out.println("creating the port");
server = new ServerSocket(port);
- } catch (IOException e) {
+ } catch (IOException e) {
System.err.println(e);
System.exit(1);
}
public void run() {
// infinite loop
- while (true){
+ while (true) {
try {
- startWorker(server.accept());
- } catch (Exception e) {
- System.err.println(e);
+ startWorker(server.accept());
+ } catch (Exception e) {
+ System.err.println(e);
}
}
}