Skip to content

Commit ca88683

Browse files
committed
fix: remove node only call
1 parent 169c584 commit ca88683

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/classes/Iterable.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ export class Iterable {
998998
(promiseResult as IterableAuthResponse).authToken
999999
);
10001000

1001-
const timeoutId = setTimeout(() => {
1001+
setTimeout(() => {
10021002
if (
10031003
authResponseCallback === IterableAuthResponseResult.SUCCESS
10041004
) {
@@ -1017,8 +1017,6 @@ export class Iterable {
10171017
);
10181018
}
10191019
}, 1000);
1020-
// Use unref() to prevent the timeout from keeping the process alive
1021-
timeoutId.unref();
10221020
} else if (typeof promiseResult === typeof '') {
10231021
//If promise only returns string
10241022
RNIterableAPI.passAlongAuthToken(promiseResult as string);

0 commit comments

Comments
 (0)