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

Commit 2c2128c

Browse files
author
tomponline
committed
Revert "adds restore_error_handler before throwing exception"
This reverts commit b77907a.
1 parent 02faa75 commit 2c2128c

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/Nats/Connection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ 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();
466465
throw Exception::forFailedConnection('Error negotiating crypto');
467466
}
468467

0 commit comments

Comments
 (0)