send xhr-polling from other threads

This commit is contained in:
Naoyuki Kanezawa
2013-04-22 23:36:42 +09:00
parent 2c4748ab93
commit 4a7b7289d7
2 changed files with 37 additions and 23 deletions

View File

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