Fixes a race condition in hive_pubsub causing excessive crashes.
Merge pull request #44 from brainly/pubsub-fixes

Second attempt at fixing #39