Skip to content

Commit 10f7054

Browse files
committed
address comment: remove timeout
1 parent 251414c commit 10f7054

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/helpers/deviceId.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const DEVICE_ID_TIMEOUT = 3000;
1919
*/
2020
export async function getDeviceIdForConnection(): Promise<string> {
2121
const controller = new AbortController();
22-
const timeoutId = setTimeout(() => controller.abort(), DEVICE_ID_TIMEOUT);
2322

2423
try {
2524
const deviceId = await getDeviceId({
@@ -39,10 +38,8 @@ export async function getDeviceIdForConnection(): Promise<string> {
3938
},
4039
abortSignal: controller.signal,
4140
});
42-
clearTimeout(timeoutId);
4341
return deviceId;
4442
} catch (error) {
45-
clearTimeout(timeoutId);
4643
logger.debug(LogId.telemetryDeviceIdFailure, "deviceId", `Failed to get device ID: ${String(error)}`);
4744
return "unknown";
4845
}

0 commit comments

Comments
 (0)