Fix 2 small bugs with resending tcp data
Merge pull request #77 from saradickinson/tcp_resend_bug

Thanks Sara, well spotted!
Fix 2 small bugs with resending tcp data