Skip to content

Callback being called multiple times in GeckoPushSend.js #25

@johndierks

Description

@johndierks

I'm running into an issue where an error state causes a callback to be called twice.

On my end, I'm sending too much data to Geckoboard list widget. Their api hangs up and causes an EPIPE error. (This part is my fault)

When this error happens the callback gets called twice on line 45 and line 55 of GeckoPushSend.js.

I'm not sure if having a callback called twice is expected behavior, and that I should account for that possibility on my end? Or if you don't think that's expected, and this is a bug, and you would like me to submit a pull request with a fix.

My opinion is that a callback should not be called twice, but I realize this is more convention than anything thing else.

Let me know, and I'm happy to do either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions