remove invalid flag

This commit is contained in:
Lion Kortlepel 2024-10-13 23:42:07 +02:00
parent 37015e4f3b
commit 32371f7571
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ void StartSync(const std::string& Data) {
void CoreSend(std::string data) {
if (CoreSocket != -1) {
auto ToSend = Utils::PrependHeader(data);
int res = send(CoreSocket, ToSend.data(), ToSend.size(), MSG_WAITALL);
int res = send(CoreSocket, ToSend.data(), ToSend.size(), 0);
if (res < 0) {
debug("(Core) send failed with error: " + std::to_string(WSAGetLastError()));
}
@ -230,7 +230,7 @@ void Parse(std::string Data, SOCKET CSocket) {
}
if (!Data.empty() && CSocket != -1) {
auto ToSend = Utils::PrependHeader(Data);
int res = send(CSocket, ToSend.data(), ToSend.size(), MSG_WAITALL);
int res = send(CSocket, ToSend.data(), ToSend.size(), 0);
if (res < 0) {
debug("(Core) send failed with error: " + std::to_string(WSAGetLastError()));
}

View File

@ -63,7 +63,7 @@ void GameSend(std::string_view Data) {
static std::mutex Lock;
std::scoped_lock Guard(Lock);
auto ToSend = Utils::PrependHeader<std::string_view>(Data);
auto Result = send(CSocket, ToSend.data(), ToSend.size(), MSG_WAITALL);
auto Result = send(CSocket, ToSend.data(), ToSend.size(), 0);
if (Result < 0) {
error("(Game) send failed with error: " + std::to_string(WSAGetLastError()));
}