Added serverSocket.close() in shutdown method
This commit is contained in:
parent
c2a80bb151
commit
1f4306ef0e
1 changed files with 3 additions and 0 deletions
|
@ -219,6 +219,9 @@ public class WebServer implements Runnable {
|
||||||
if (listener != null) {
|
if (listener != null) {
|
||||||
Thread l = listener;
|
Thread l = listener;
|
||||||
listener = null;
|
listener = null;
|
||||||
|
try {
|
||||||
|
serverSocket.close ();
|
||||||
|
} catch (Exception ignore) {}
|
||||||
l.interrupt ();
|
l.interrupt ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue