mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[host] app: correct timer restart on lgmp corruption recovery
This commit is contained in:
parent
ecca5720a9
commit
697bbcd6d4
@ -149,9 +149,7 @@ static bool lgmpTimer(void * opaque)
|
|||||||
DEBUG_ERROR("LGMP reported the shared memory has been corrrupted, "
|
DEBUG_ERROR("LGMP reported the shared memory has been corrrupted, "
|
||||||
"attempting to recover");
|
"attempting to recover");
|
||||||
app.state = APP_STATE_REINIT;
|
app.state = APP_STATE_REINIT;
|
||||||
|
return false;
|
||||||
// this is not a termination state, don't stop the timer
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_ERROR("lgmpHostProcess Failed: %s", lgmpStatusString(status));
|
DEBUG_ERROR("lgmpHostProcess Failed: %s", lgmpStatusString(status));
|
||||||
@ -860,9 +858,9 @@ int app_main(int argc, char * argv[])
|
|||||||
{
|
{
|
||||||
DEBUG_INFO("Performing LGMP reinitialization");
|
DEBUG_INFO("Performing LGMP reinitialization");
|
||||||
lgmpShutdown();
|
lgmpShutdown();
|
||||||
|
app.state = APP_STATE_RUNNING;
|
||||||
if (!lgmpSetup(&shmDev))
|
if (!lgmpSetup(&shmDev))
|
||||||
goto fail_lgmp;
|
goto fail_lgmp;
|
||||||
app.state = APP_STATE_RUNNING;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (app.state == APP_STATE_IDLE)
|
if (app.state == APP_STATE_IDLE)
|
||||||
|
Loading…
Reference in New Issue
Block a user