Added serverSocket.close() in shutdown method

This commit is contained in:
hns 2001-04-03 11:55:31 +00:00
parent c2a80bb151
commit 1f4306ef0e

View file

@ -219,6 +219,9 @@ public class WebServer implements Runnable {
if (listener != null) {
Thread l = listener;
listener = null;
try {
serverSocket.close ();
} catch (Exception ignore) {}
l.interrupt ();
}
}