fix: TS2345 null check on canvas context in RDP frame loop
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 4m21s
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 4m21s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
48f9af0824
commit
1c70eb3248
@ -322,6 +322,7 @@ export function useRdp(): UseRdpReturn {
|
|||||||
rafScheduled = false;
|
rafScheduled = false;
|
||||||
if (fetchPending) return;
|
if (fetchPending) return;
|
||||||
fetchPending = true;
|
fetchPending = true;
|
||||||
|
if (!ctx) return;
|
||||||
const rendered = await fetchAndRender(sessionId, width, height, ctx);
|
const rendered = await fetchAndRender(sessionId, width, height, ctx);
|
||||||
fetchPending = false;
|
fetchPending = false;
|
||||||
if (rendered && !connected.value) connected.value = true;
|
if (rendered && !connected.value) connected.value = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user