Skip to content

Commit

Permalink
Remove double call to callback
Browse files Browse the repository at this point in the history
  • Loading branch information
iwiznia committed May 19, 2023
1 parent 01875f4 commit 510faec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libs/Pusher/pusher.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ function bindEventToChannel(channel, eventName, eventCallback = () => {}) {
// Only call the event callback if we've received the last packet and we don't have any holes in the complete
// packet.
if (chunkedEvent.receivedFinal && chunkedEvent.chunks.length === _.keys(chunkedEvent.chunks).length) {
eventCallback(JSON.parse(chunkedEvent.chunks.join('')));
try {
eventCallback(JSON.parse(chunkedEvent.chunks.join('')));
} catch (err) {
Expand Down

0 comments on commit 510faec

Please sign in to comment.