mosh-client: Catch all exceptions when ensuring client is shut down
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -165,12 +165,9 @@ int main( int argc, char *argv[] )
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
client.main();
|
client.main();
|
||||||
} catch ( const Network::NetworkException &e ) {
|
} catch ( ... ) {
|
||||||
client.shutdown();
|
client.shutdown();
|
||||||
throw e;
|
throw;
|
||||||
} catch ( const Crypto::CryptoException &e ) {
|
|
||||||
client.shutdown();
|
|
||||||
throw e;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
client.shutdown();
|
client.shutdown();
|
||||||
|
|||||||
Reference in New Issue
Block a user