mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-30 02:53:38 +00:00
[c-host] resend the last on client reconnect if a timeout occurs
This commit is contained in:
parent
3d426ccef8
commit
7d26027752
4 changed files with 45 additions and 28 deletions
|
@ -774,11 +774,8 @@ static CaptureResult dxgi_getFrame(CaptureFrame * frame)
|
|||
assert(this->initialized);
|
||||
|
||||
Texture * tex = &this->texture[this->texRIndex];
|
||||
if (!os_waitEvent(tex->mapped, TIMEOUT_INFINITE))
|
||||
{
|
||||
DEBUG_ERROR("Failed to wait on the texture map event");
|
||||
return CAPTURE_RESULT_ERROR;
|
||||
}
|
||||
if (!os_waitEvent(tex->mapped, 1000))
|
||||
return CAPTURE_RESULT_TIMEOUT;
|
||||
|
||||
if (this->stop)
|
||||
return CAPTURE_RESULT_REINIT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue