diff options
author | Fedor Indutny <fedor@indutny.com> | 2016-10-01 22:17:51 +0300 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2016-10-04 02:44:53 +0300 |
commit | d33c4bf97b68dbae83a1d456f7b34a91b1583666 (patch) | |
tree | 01499960a491d787e97d4edb2d22ef9311478fb1 /src | |
parent | 2cfd7fd8f9a2206a0cce0e9f6fa92850fbdbb4e3 (diff) |
tls: handle `error` events with `_tlsError`
Previously `TLSSocket#_emitTLSError` was used as an `error` event
handler. However that function can emit `error` event itself, so it is
not suitable for such use. Luckily the event can be emitted only when
the control is released, so this looping-error can't happen.
Replace the error handler for clarity and correctness.
PR-URL: https://github.com/nodejs/node/pull/8889
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions