Resolved concurrency issue when registering and publishing messages
Merge pull request #4 from TheAngryByrd/master

Resolved concurrency issue when registering and publishing messages