thread constraint

This commit is contained in:
Naoyuki Kanezawa
2013-05-06 20:48:38 +09:00
parent a5898573c6
commit 06c1da57b4
8 changed files with 261 additions and 106 deletions

View File

@@ -80,8 +80,8 @@ public class ServerConnectionTest {
public void stopServer() throws InterruptedException {
System.out.println("Stopping server ...");
serverProcess.destroy();
serverOutout.cancel(false);
serverError.cancel(false);
serverOutout.cancel(true);
serverError.cancel(true);
serverService.shutdown();
serverService.awaitTermination(3000, TimeUnit.MILLISECONDS);
}