Update Sync.cpp

This commit is contained in:
Anonymous275
2020-12-20 16:04:15 +02:00
parent 8f042a3ee4
commit f94252d37b

View File

@@ -36,10 +36,9 @@ void SplitLoad(Client*c,int64_t Sent,int64_t Size, bool D,const std::string& Nam
char* Data; char* Data;
if(Size > Split)Data = new char[Split]; if(Size > Split)Data = new char[Split];
else Data = new char[Size]; else Data = new char[Size];
SOCKET TCPSock = c->GetTCPSock(); SOCKET TCPSock;
if(D){ if(D)TCPSock = c->GetDownSock();
TCPSock = c->GetDownSock(); else TCPSock = c->GetTCPSock();
}
info("Split load Socket " + std::to_string(TCPSock)); info("Split load Socket " + std::to_string(TCPSock));
while (c->GetStatus() > -1 && Sent < Size) { while (c->GetStatus() > -1 && Sent < Size) {
Diff = Size - Sent; Diff = Size - Sent;