diff options
Diffstat (limited to 'src/frontend/stmclient.cc')
-rw-r--r-- | src/frontend/stmclient.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/frontend/stmclient.cc b/src/frontend/stmclient.cc index b191914..5a57783 100644 --- a/src/frontend/stmclient.cc +++ b/src/frontend/stmclient.cc @@ -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 ) ); + } } } } |