|
@@ -10317,6 +10317,7 @@ int handleGetDiagnosticsRequest(char *uuid, char *payload)
|
|
|
{
|
|
|
interLock.isGetDiagnosticGoing = 1;
|
|
|
pthread_create(&th_Status, NULL, GetDiagnosticsProcess, stringtrimspace(payload));
|
|
|
+ sleep(1);
|
|
|
}
|
|
|
else
|
|
|
DEBUG_WARN("Other GetDiagnostic request on going.\n");
|
|
@@ -13158,6 +13159,7 @@ int handleUpdateFirmwareRequest(char *uuid, char *payload)
|
|
|
{
|
|
|
interLock.isUpdateFirmwareGoing = 1;
|
|
|
pthread_create(&t, NULL, UpdateFirmwareProcess, stringtrimspace(payload));
|
|
|
+ sleep(1);
|
|
|
}
|
|
|
else
|
|
|
DEBUG_WARN("Other UpdateFirmware request on going.\n");
|