diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tls/tls_channel.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp index 8aa52a307..399568a44 100644 --- a/src/tls/tls_channel.cpp +++ b/src/tls/tls_channel.cpp @@ -169,15 +169,12 @@ void TLS_Channel::queue_for_sending(const byte buf[], size_t buf_size) void TLS_Channel::alert(Alert_Level level, Alert_Type alert_code) { - if(active && alert_code != NO_ALERT_TYPE) + try { - try - { - writer.alert(level, alert_code); - writer.flush(); - } - catch(...) { /* swallow it */ } + writer.alert(level, alert_code); + writer.flush(); } + catch(...) { /* swallow it */ } if(active && level == FATAL) { |