Commit d8e2c24 1 parent 6010c33 commit d8e2c24 Copy full SHA for d8e2c24
File tree 3 files changed +339
-184
lines changed
3 files changed +339
-184
lines changed Original file line number Diff line number Diff line change @@ -154,15 +154,16 @@ pub fn SSLWrapper(comptime T: type) type {
154
154
155
155
// we sent the shutdown
156
156
this .flags .sent_ssl_shutdown = ret >= 0 ;
157
- defer if (ret < 0 ) {
157
+ if (ret < 0 ) {
158
158
const err = BoringSSL .SSL_get_error (ssl , ret );
159
159
BoringSSL .ERR_clear_error ();
160
160
161
161
if (err == BoringSSL .SSL_ERROR_SSL or err == BoringSSL .SSL_ERROR_SYSCALL ) {
162
162
this .flags .fatal_error = true ;
163
163
this .triggerCloseCallback ();
164
+ return false ;
164
165
}
165
- };
166
+ }
166
167
return ret == 1 ; // truly closed
167
168
}
168
169
@@ -424,7 +425,6 @@ pub fn SSLWrapper(comptime T: type) type {
424
425
if (read > 0 ) {
425
426
this .triggerDataCallback (buffer [0.. read ]);
426
427
}
427
-
428
428
this .triggerCloseCallback ();
429
429
return false ;
430
430
} else {
You can’t perform that action at this time.
0 commit comments