bugfix: set the correct status if we still have pending data
Merge pull request #313 from xant/upstream

bugfix: set the correct status if we still have pending data