mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-20 23:37:06 +00:00
Update Sync.cpp
This commit is contained in:
1 parent
8f042a3ee4
commit
f94252d37b
1 file changed
+3
-4
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user