We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 251414c commit 10f7054Copy full SHA for 10f7054
src/helpers/deviceId.ts
@@ -19,7 +19,6 @@ export const DEVICE_ID_TIMEOUT = 3000;
19
*/
20
export async function getDeviceIdForConnection(): Promise<string> {
21
const controller = new AbortController();
22
- const timeoutId = setTimeout(() => controller.abort(), DEVICE_ID_TIMEOUT);
23
24
try {
25
const deviceId = await getDeviceId({
@@ -39,10 +38,8 @@ export async function getDeviceIdForConnection(): Promise<string> {
39
38
},
40
abortSignal: controller.signal,
41
});
42
- clearTimeout(timeoutId);
43
return deviceId;
44
} catch (error) {
45
46
logger.debug(LogId.telemetryDeviceIdFailure, "deviceId", `Failed to get device ID: ${String(error)}`);
47
return "unknown";
48
}
0 commit comments