Fix callback calling more than once
Merge pull request #11 from alicoding/fix

Fix callback calling more than once