also destroy socket

This commit is contained in:
Ben 2023-10-03 08:22:59 -04:00
parent 6dfcad7725
commit 7441838ba5

View File

@ -72,6 +72,7 @@ export class StratumV1Service implements OnModuleInit {
socket.on('timeout', () => {
console.log('socket timeout');
socket.end();
socket.destroy();
});
socket.on('error', async (error: Error) => { });