[host] fix faults caused by improper startup/shudown/restart ordering

This commit is contained in:
Geoffrey McRae
2021-01-21 17:05:30 +11:00
parent 6b8161972d
commit 04774d9cd6
4 changed files with 55 additions and 26 deletions

View File

@@ -211,17 +211,8 @@ static void nvfbc_stop(void)
{
this->stop = true;
if (this->cursorEvents[0])
{
lgSignalEvent(this->cursorEvents[0]);
this->cursorEvents[0] = NULL;
}
if (this->frameEvent)
{
lgSignalEvent(this->frameEvent);
this->frameEvent = NULL;
}
lgSignalEvent(this->cursorEvents[0]);
lgSignalEvent(this->frameEvent);
if (this->pointerThread)
{