You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
When flush's done function is called, the callback is called twice: Once from the callbacks array (as it was added to the array from the queued message) and again when callback is called (as it was passed to flush as the callback argument).
The callback passed to
enque
can be called twice if a flush is triggered. The callback is passed both to the queued message and toflush
:analytics-node/index.js
Lines 210 to 223 in 70f24fe
When
flush
'sdone
function is called, the callback is called twice: Once from thecallbacks
array (as it was added to the array from the queued message) and again whencallback
is called (as it was passed toflush
as thecallback
argument).analytics-node/index.js
Lines 265 to 268 in 70f24fe
The fix is to not pass
enque
's callback toflush
.In general, a callback should never have more than 1 handler.
The text was updated successfully, but these errors were encountered: