diff options
Diffstat (limited to 'java/demo/Ice/hello/Client.java')
-rw-r--r-- | java/demo/Ice/hello/Client.java | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/java/demo/Ice/hello/Client.java b/java/demo/Ice/hello/Client.java index 3365d71c0a6..c5a75693aba 100644 --- a/java/demo/Ice/hello/Client.java +++ b/java/demo/Ice/hello/Client.java @@ -192,20 +192,12 @@ public class Client { ex.printStackTrace(); status = 1; - } - - if(communicator != null) - { - try - { + } finally { + if(communicator != null) + { communicator.destroy(); - } - catch(Ice.LocalException ex) - { - ex.printStackTrace(); - status = 1; - } - } + } + } System.exit(status); } |