helpful progress reporting
[IRC.git] / Robust / src / Interface / JhttpServer.java
index 59c675ce0c7a545007b77dcd64a31941ac801953..0ad96d64ddd420ed34be1d0112107eea7405a3ce 100644 (file)
@@ -20,11 +20,10 @@ public class JhttpServer extends Thread {
   public JhttpServer(int port, WebInterface webinterface) {
     System.out.println("starting...");
     this.webinterface=webinterface;
-    try{
+    try {
       System.out.println("creating the port");
       server = new ServerSocket(port);
-    }
-    catch (IOException e){
+    } catch (IOException e) {
       System.err.println(e);
       System.exit(1);
     }
@@ -36,11 +35,10 @@ public class JhttpServer extends Thread {
 
   public void run() {
     // infinite loop
-    while (true){
-      try{
+    while (true) {
+      try {
        startWorker(server.accept());
-      }
-      catch (Exception e){
+      } catch (Exception e) {
        System.err.println(e);
       }
     }