diff options
author | Fedor Indutny <fedor@indutny.com> | 2016-10-01 21:17:51 +0200 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2016-10-11 12:30:51 -0400 |
commit | bee1955f4e3eaaafcf2cb22ab33ff0a69b27bbc8 (patch) | |
tree | 47f702e1e3cda04863e21802def76936e3c2a7f9 /src/util-inl.h | |
parent | c36c8dc3cc89a136cf39a2d09c3f1e5895bd2d69 (diff) | |
download | node-new-bee1955f4e3eaaafcf2cb22ab33ff0a69b27bbc8.tar.gz |
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/util-inl.h')
0 files changed, 0 insertions, 0 deletions