Wait for channel to fully complete sending all data
Merge pull request #5 from ant1441/fix-channel-recv

Wait for channel to fully complete sending all data