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;
if(Size > Split)Data = new char[Split];
else Data = new char[Size];
SOCKET TCPSock = c->GetTCPSock();
if(D){
TCPSock = c->GetDownSock();
}
SOCKET TCPSock;
if(D)TCPSock = c->GetDownSock();
else TCPSock = c->GetTCPSock();
info("Split load Socket " + std::to_string(TCPSock));
while (c->GetStatus() > -1 && Sent < Size) {
Diff = Size - Sent;