diff --git a/.changeset/big-news-thank.md b/.changeset/big-news-thank.md new file mode 100644 index 000000000..0c7e181bb --- /dev/null +++ b/.changeset/big-news-thank.md @@ -0,0 +1,5 @@ +--- +"@osdk/client": patch +--- + +Fix onOutOfDate handler from being fired twice diff --git a/packages/client/src/objectSet/ObjectSetListenerWebsocket.ts b/packages/client/src/objectSet/ObjectSetListenerWebsocket.ts index 6c00b982a..e83ee36c0 100644 --- a/packages/client/src/objectSet/ObjectSetListenerWebsocket.ts +++ b/packages/client/src/objectSet/ObjectSetListenerWebsocket.ts @@ -523,7 +523,6 @@ export class ObjectSetListenerWebsocket { this.#logger?.error(error, "Error in onOutOfDate callback"); this.#tryCatchOnError(sub, false, error); } - sub.listener.onOutOfDate(); }; #handleMessage_subscribeResponses = (