repositioned Logger for server shutdown
This commit is contained in:
@@ -103,11 +103,10 @@ public void shutdownServer() {
|
|||||||
// Wait for the server to shut down
|
// Wait for the server to shut down
|
||||||
try {
|
try {
|
||||||
serverThread.join(); // Wait for the server thread to finish
|
serverThread.join(); // Wait for the server thread to finish
|
||||||
|
System.out.println("Server shutdown successfully.");
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("Server shutdown successfully.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user