Skip to content

Commit ef00764

Browse files
committed
fix(node-sdk): guard SSE timer unref
1 parent d5897f4 commit ef00764

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/node-sdk/src/flag-updates-sse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function openFlagUpdatesSSE({
4646
reconnectTimer = undefined;
4747
void connect();
4848
}, reconnectDelayMs);
49-
reconnectTimer.unref();
49+
reconnectTimer.unref?.();
5050

5151
reconnectDelayMs = Math.min(reconnectDelayMs * 2, MAX_RECONNECT_DELAY_MS);
5252
};

0 commit comments

Comments
 (0)