diff --git a/src/index.ts b/src/index.ts index 0827468..5ec85c1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -68,5 +68,10 @@ export default async ( client.end(); resolve({ host: json.host, port: json.port }); }); + + setTimeout(() => { + client.end(); + reject(); + }, 1000); }); };