Merge pull request #2474 from kfeuz/Issue74

Catch SocketException separately and report
This commit is contained in:
Ben Fry
2014-05-08 16:22:13 -04:00

View File

@@ -265,6 +265,10 @@ public class Server implements Runnable {
}
}
}
} catch (SocketException e) {
//thrown when server.close() is called and server is waiting on accept
System.err.println("Server SocketException: " + e.getMessage());
thread = null;
} catch (IOException e) {
//errorMessage("run", e);
e.printStackTrace();