summaryrefslogtreecommitdiff
path: root/java/demo/IcePack/hello/Client.java
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2004-08-26 00:14:02 +0000
committerMichi Henning <michi@zeroc.com>2004-08-26 00:14:02 +0000
commit309c1eca704d587c6bbff6429e92e72b6717ca45 (patch)
tree622b78ef90d764569dd2841688f2413edb770350 /java/demo/IcePack/hello/Client.java
parentFix (diff)
downloadice-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.java10
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);