diff options
author | Marc Laukien <marc@zeroc.com> | 2002-04-17 23:15:27 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-04-17 23:15:27 +0000 |
commit | 9843d4c82ec7c70a47a6e2fc1443f86807ae641e (patch) | |
tree | b22b21ecaf0788f7e5ef11fec6ab0e1b7f447a8d /cpp/src/IcePatch/Client.cpp | |
parent | fixes (diff) | |
download | ice-9843d4c82ec7c70a47a6e2fc1443f86807ae641e.tar.bz2 ice-9843d4c82ec7c70a47a6e2fc1443f86807ae641e.tar.xz ice-9843d4c82ec7c70a47a6e2fc1443f86807ae641e.zip |
more fixes
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r-- | cpp/src/IcePatch/Client.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp index 7702792361e..ccae39ef90d 100644 --- a/cpp/src/IcePatch/Client.cpp +++ b/cpp/src/IcePatch/Client.cpp @@ -55,6 +55,8 @@ IcePatch::Client::usage() int IcePatch::Client::run(int argc, char* argv[]) { + RouterPrx router; + try { for (int i = 1; i < argc; ++i) @@ -99,7 +101,6 @@ IcePatch::Client::run(int argc, char* argv[]) ByteSeq publicKey; ByteSeq routerCert; - RouterPrx router; while (!router) { string id; @@ -195,8 +196,17 @@ IcePatch::Client::run(int argc, char* argv[]) catch (const FileAccessException& ex) { cerr << appName() << ": " << ex << ":\n" << ex.reason << endl; + if (router) + { + router->shutdown(); + } return EXIT_FAILURE; } + + if (router) + { + router->shutdown(); + } return EXIT_SUCCESS; } |