Don't expect responses for ENet control messages to fix GFE 3.16
This commit is contained in:
parent
11ea2b1053
commit
8665d80697
1 changed files with 1 additions and 11 deletions
|
|
@ -378,10 +378,7 @@ static int sendMessageAndForget(short ptype, short paylen, const void* payload)
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sendMessageAndDiscardReply(short ptype, short paylen, const void* payload) {
|
static int sendMessageAndDiscardReply(short ptype, short paylen, const void* payload) {
|
||||||
// Discard the response
|
|
||||||
if (AppVersionQuad[0] >= 5) {
|
if (AppVersionQuad[0] >= 5) {
|
||||||
ENetEvent event;
|
|
||||||
|
|
||||||
PltLockMutex(&enetMutex);
|
PltLockMutex(&enetMutex);
|
||||||
|
|
||||||
if (!sendMessageEnet(ptype, paylen, payload)) {
|
if (!sendMessageEnet(ptype, paylen, payload)) {
|
||||||
|
|
@ -389,14 +386,6 @@ static int sendMessageAndDiscardReply(short ptype, short paylen, const void* pay
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (serviceEnetHost(client, &event, CONTROL_STREAM_TIMEOUT_SEC * 1000) <= 0 ||
|
|
||||||
event.type != ENET_EVENT_TYPE_RECEIVE) {
|
|
||||||
PltUnlockMutex(&enetMutex);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
enet_packet_destroy(event.packet);
|
|
||||||
|
|
||||||
PltUnlockMutex(&enetMutex);
|
PltUnlockMutex(&enetMutex);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
@ -406,6 +395,7 @@ static int sendMessageAndDiscardReply(short ptype, short paylen, const void* pay
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Discard the response
|
||||||
reply = readNvctlPacketTcp();
|
reply = readNvctlPacketTcp();
|
||||||
if (reply == NULL) {
|
if (reply == NULL) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue