Skip to content

Commit 30b1294

Browse files
committed
undo clear timeout
1 parent fe1f879 commit 30b1294

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/core/odp/odp_event_manager.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,16 +336,18 @@ export abstract class OdpEventManager implements IOdpEventManager {
336336
if (this.status !== Status.Running) {
337337
return;
338338
}
339-
340-
this.clearCurrentTimeout();
341339

342340
if (shouldFlush) {
343341
// clear the queue completely
342+
this.clearCurrentTimeout();
343+
344344
while (this.queueContainsItems()) {
345345
this.makeAndSend1Batch();
346346
}
347347
} else if (this.queueHasBatches()) {
348348
// Check if queue has a full batch available
349+
this.clearCurrentTimeout();
350+
349351
while (this.queueHasBatches()) {
350352
this.makeAndSend1Batch();
351353
}

0 commit comments

Comments
 (0)