Fix for bug where the consumer thread calls join() on itself causing it to be hung forever.
Merge pull request #78 from jesper2610/master

Bug fix: Consumer thread called join() on itself causing deadlock