diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-03-06 14:19:17 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-03-06 14:19:17 +0000 |
commit | bb485367b90219b73d9c5d07abee15f0b4a7bf9d (patch) | |
tree | 212534362858450d834aa1eec71d1c8130074f1a /java/demo/Ice/async/Server.java | |
parent | fixed typo in README (diff) | |
download | ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.tar.bz2 ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.tar.xz ice-bb485367b90219b73d9c5d07abee15f0b4a7bf9d.zip |
Bug 1970
Diffstat (limited to 'java/demo/Ice/async/Server.java')
-rw-r--r-- | java/demo/Ice/async/Server.java | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/java/demo/Ice/async/Server.java b/java/demo/Ice/async/Server.java index 25ba4e2baac..4434f3b59a5 100644 --- a/java/demo/Ice/async/Server.java +++ b/java/demo/Ice/async/Server.java @@ -17,22 +17,7 @@ public class Server extends Ice.Application run() { _workQueue.destroy(); - try - { - _workQueue.join(); - } - catch(java.lang.InterruptedException ex) - { - } - - try - { - communicator().destroy(); - } - catch(Ice.LocalException ex) - { - ex.printStackTrace(); - } + communicator().shutdown(); } } @@ -49,6 +34,15 @@ public class Server extends Ice.Application adapter.activate(); communicator().waitForShutdown(); + + try + { + _workQueue.join(); + } + catch(java.lang.InterruptedException ex) + { + } + return 0; } |