diff options
author | Michi Henning <michi@zeroc.com> | 2004-08-26 00:14:02 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2004-08-26 00:14:02 +0000 |
commit | 309c1eca704d587c6bbff6429e92e72b6717ca45 (patch) | |
tree | 622b78ef90d764569dd2841688f2413edb770350 /java/demo/IcePack/hello/Client.java | |
parent | Fix (diff) | |
download | ice-309c1eca704d587c6bbff6429e92e72b6717ca45.tar.bz2 ice-309c1eca704d587c6bbff6429e92e72b6717ca45.tar.xz ice-309c1eca704d587c6bbff6429e92e72b6717ca45.zip |
Fixed incorrect calls to Communicator.destroy().
Diffstat (limited to 'java/demo/IcePack/hello/Client.java')
-rw-r--r-- | java/demo/IcePack/hello/Client.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/java/demo/IcePack/hello/Client.java b/java/demo/IcePack/hello/Client.java index 5e84c39e2dc..fb2d0551a87 100644 --- a/java/demo/IcePack/hello/Client.java +++ b/java/demo/IcePack/hello/Client.java @@ -180,12 +180,18 @@ public class Client ex.printStackTrace(); status = 1; } - finally + + if(communicator != null) { - if(communicator != null) + try { communicator.destroy(); } + catch(Ice.LocalException ex) + { + ex.printStackTrace(); + status = 1; + } } System.exit(status); |