mosh-client: Catch all exceptions when ensuring client is shut down

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2014-01-08 18:54:30 -05:00
parent 56837881fc
commit 50152bfcba
+2 -5
View File
@@ -165,12 +165,9 @@ int main( int argc, char *argv[] )
try {
client.main();
} catch ( const Network::NetworkException &e ) {
} catch ( ... ) {
client.shutdown();
throw e;
} catch ( const Crypto::CryptoException &e ) {
client.shutdown();
throw e;
throw;
}
client.shutdown();