Allow CryptoExceptions to be fatal

This commit is contained in:
Keegan McAllister
2012-03-26 21:02:23 -04:00
parent 519d1ee282
commit ba6387f36c
3 changed files with 15 additions and 5 deletions
+7 -3
View File
@@ -398,9 +398,13 @@ void STMClient::main( void )
req.tv_nsec = 200000000; /* 0.2 sec */
nanosleep( &req, NULL );
} catch ( Crypto::CryptoException e ) {
wchar_t tmp[ 128 ];
swprintf( tmp, 128, L"Crypto exception: %s", e.text.c_str() );
overlays.get_notification_engine().set_notification_string( wstring( tmp ) );
if ( e.fatal ) {
throw;
} else {
wchar_t tmp[ 128 ];
swprintf( tmp, 128, L"Crypto exception: %s", e.text.c_str() );
overlays.get_notification_engine().set_notification_string( wstring( tmp ) );
}
}
}
}