Update packages/playwright-core/src/server/socksClientCertificatesInterceptor.ts

Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-08-15 10:19:00 +02:00 committed by GitHub
parent ef1159e3a3
commit b3203f9263
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,8 +210,10 @@ class SocksProxyConnection {
return; return;
} }
if (this._closed) if (this._closed) {
internalTLS.destroy();
return; return;
}
targetTLS = tls.connect({ targetTLS = tls.connect({
socket: this.target, socket: this.target,
host: this.host, host: this.host,