mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2025-08-17 17:05:50 +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) {
|
||||
long long payload[2];
|
||||
NVCTL_PACKET_HEADER header;
|
||||
PNVCTL_PACKET_HEADER response;
|
||||
int err;
|
||||
|
||||
header.type = PTYPE_RESYNC;
|
||||
@ -174,6 +175,14 @@ static void resyncThreadFunc(void* context) {
|
||||
return;
|
||||
}
|
||||
|
||||
response = readNvctlPacket();
|
||||
if (response == NULL) {
|
||||
Limelog("Resync thread terminating #3\n");
|
||||
listenerCallbacks->connectionTerminated(LastSocketError());
|
||||
return;
|
||||
}
|
||||
Limelog("Resync complete\n");
|
||||
|
||||
PltClearEvent(&resyncEvent);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user