Merge pull request #2 from lukekarrys/master

Emit only once per event per loop