Message buffer flush fix
Merge pull request #26 from stealthly/flush-fix

Message buffer flush fix