Wait for a resync reply before trying to resync again
This commit is contained in:
parent
61909b373f
commit
ddd3cb8da9
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue