Closed mryraghi closed 4 months ago
When options.secure = true, tls is used, which exports.connect = _tls_wrap.connect;, which returns TLSSocket, which doesn't have destroySoon().
options.secure = true
tls
exports.connect = _tls_wrap.connect;
TLSSocket
destroySoon()
This PR simply adds some check to make sure that if destroySoon is not a function, destroy() is called instead, which is common to both tls and net.
destroySoon
destroy()
net
All committers have signed the CLA.
Thanks!
When
options.secure = true
,tls
is used, whichexports.connect = _tls_wrap.connect;
, which returnsTLSSocket
, which doesn't havedestroySoon()
.This PR simply adds some check to make sure that if
destroySoon
is not a function,destroy()
is called instead, which is common to bothtls
andnet
.