Skip to content

Commit 0892465

Browse files
committed
chore: bot comments
put in the for ordering
1 parent 0d5d8fc commit 0892465

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/sdk/node-client/src/NodeClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ export class NodeClient extends LDClientImpl {
107107
const dataManager = this.dataManager as NodeDataManager;
108108
try {
109109
if (mode === 'offline') {
110-
// Disable analytics, then drain any queued events before tearing down the data source.
111-
this.setEventSendingEnabled(false, false);
110+
// Drain any queued events before closing the event processor and tearing down the data source.
112111
await this.flush();
112+
this.setEventSendingEnabled(false, false);
113113
}
114114
await dataManager.setConnectionMode(mode);
115115
} finally {

0 commit comments

Comments
 (0)