Fixed server networking bug
This commit is contained in:
parent
3db5649d77
commit
de7fa767b4
1 changed files with 2 additions and 1 deletions
|
@ -304,7 +304,8 @@ static SOCKET_STATE send_buffer(TCPsocket sock, std::vector<char>& buf)
|
|||
}
|
||||
const int res = SDLNet_TCP_Send(sock, &buf[upto], static_cast<int>(size - upto));
|
||||
|
||||
if(!raw_data_only && res == static_cast<int>(size - upto)) {
|
||||
if(res == static_cast<int>(size - upto)) {
|
||||
if (!raw_data_only)
|
||||
{
|
||||
const threading::lock lock(*stats_mutex);
|
||||
transfer_stats[sock].first.transfer(static_cast<size_t>(res));
|
||||
|
|
Loading…
Add table
Reference in a new issue