diff options
author | Mike <github@barry.io> | 2013-09-24 17:19:41 -0400 |
---|---|---|
committer | Mike <github@barry.io> | 2013-09-24 17:19:41 -0400 |
commit | 8c62319d513fac1f1119f4bb8c20dfb8bb6887a5 (patch) | |
tree | c381892a99f88e7c012285e5219f465ab2598b2d | |
parent | 5aef1c54fda3d1f94b10f05df003e6134488f878 (diff) |
If send doesn't complete in one iteration don't
resend begining of data
fixes: #14509
-rw-r--r-- | xbmc/network/TCPServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/network/TCPServer.cpp b/xbmc/network/TCPServer.cpp index 4283ce7b21..321ab5757e 100644 --- a/xbmc/network/TCPServer.cpp +++ b/xbmc/network/TCPServer.cpp @@ -526,7 +526,7 @@ void CTCPServer::CTCPClient::Send(const char *data, unsigned int size) do { CSingleLock lock (m_critSection); - sent += send(m_socket, data, size - sent, 0); + sent += send(m_socket, data + sent, size - sent, 0); } while (sent < size); } |