diff options
Diffstat (limited to 'java/demo/Ice/throughput/Client.java')
-rw-r--r-- | java/demo/Ice/throughput/Client.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/java/demo/Ice/throughput/Client.java b/java/demo/Ice/throughput/Client.java index 62495e1990a..4c58e7f303c 100644 --- a/java/demo/Ice/throughput/Client.java +++ b/java/demo/Ice/throughput/Client.java @@ -193,20 +193,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); } |