fix: add 1 second timeout to auto-reject and close the connection

This commit is contained in:
Derrick Hammer 2023-07-12 02:50:44 -04:00
parent 17b9af7e71
commit ac4aaceb73
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -68,5 +68,10 @@ export default async (
client.end();
resolve({ host: json.host, port: json.port });
});
setTimeout(() => {
client.end();
reject();
}, 1000);
});
};