Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit b77907a

Browse files
author
tomponline
committed
adds restore_error_handler before throwing exception
1 parent b1f925a commit b77907a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Nats/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ function ($errno, $errstr, $errfile, $errline) {
462462

463463
if (!stream_socket_enable_crypto(
464464
$this->streamSocket, true, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT)) {
465+
restore_error_handler();
465466
throw Exception::forFailedConnection('Error negotiating crypto');
466467
}
467468

0 commit comments

Comments
 (0)