Permalink
Browse files

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

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
andersk committed Jan 8, 2014
1 parent 5683788 commit 50152bfcba872dd2ef5318877823005ad0c4593f
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/frontend/mosh-client.cc
@@ -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();

0 comments on commit 50152bf

Please sign in to comment.