Skip to content

Commit 66673ed

Browse files
committed
chore: bot comment
1 parent 111c7e2 commit 66673ed

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/sdk/browser/src/BrowserClient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,10 @@ class BrowserClientImpl extends LDClientImpl {
237237
identifyOptions?: LDIdentifyOptions,
238238
): Promise<LDIdentifyResult> {
239239
const res = await super.identifyResult(context, identifyOptions);
240-
this._goalManager?.startTracking();
240+
// Ensure that we do not start the goal manager if start() is not called.
241+
if (this.startPromise) {
242+
this._goalManager?.startTracking();
243+
}
241244
return res;
242245
}
243246

0 commit comments

Comments
 (0)