fix handling of received data
Merge pull request #4 from k3nn7/tcp-worker-fix

fix handling of received data