Fixed skipBytes implementation in Socket::Connection

This commit is contained in:
Ramkoemar 2018-05-29 12:23:12 +02:00 committed by Thulinma
parent c7e8d80edb
commit 1240f6bbaa

View file

@ -653,9 +653,9 @@ unsigned int Socket::Connection::iwrite(const void *buffer, int len){
skipCount -= len; skipCount -= len;
return len; return len;
}else{ }else{
unsigned int retCode = iwrite((((char*)buffer)+skipCount), len-skipCount); unsigned int toSkip = skipCount;
skipCount = 0; skipCount = 0;
return retCode; return iwrite((((char*)buffer)+toSkip), len-toSkip) + toSkip;
} }
} }
int r; int r;