remove end call

This commit is contained in:
zizifn
2022-12-06 22:13:35 +08:00
committed by zizifn
parent 50311197db
commit 56f931dc06

View File

@@ -49,8 +49,8 @@ const httpProxyServer = createServer(async (req, resp) => {
req.socket.destroy();
});
} catch (error) {
req.socket.end();
req.socket.destroy();
req.socket?.end();
req.socket?.destroy();
console.log(`${clientSocketLoggerInfo} has error `, error);
}
});