mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-18 01:15:46 +00:00
Wait for a resync reply before trying to resync again
This commit is contained in:
parent
61909b373f
commit
ddd3cb8da9
@ -149,6 +149,7 @@ static void jitterThreadFunc(void* context) {
|
|||||||
static void resyncThreadFunc(void* context) {
|
static void resyncThreadFunc(void* context) {
|
||||||
long long payload[2];
|
long long payload[2];
|
||||||
NVCTL_PACKET_HEADER header;
|
NVCTL_PACKET_HEADER header;
|
||||||
|
PNVCTL_PACKET_HEADER response;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
header.type = PTYPE_RESYNC;
|
header.type = PTYPE_RESYNC;
|
||||||
@ -174,6 +175,14 @@ static void resyncThreadFunc(void* context) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
response = readNvctlPacket();
|
||||||
|
if (response == NULL) {
|
||||||
|
Limelog("Resync thread terminating #3\n");
|
||||||
|
listenerCallbacks->connectionTerminated(LastSocketError());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
Limelog("Resync complete\n");
|
||||||
|
|
||||||
PltClearEvent(&resyncEvent);
|
PltClearEvent(&resyncEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user