mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-22 16:06:43 +00:00
Update Sync.cpp
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user