diff --git a/src/composables/useRdp.ts b/src/composables/useRdp.ts index cb75735..9515db6 100644 --- a/src/composables/useRdp.ts +++ b/src/composables/useRdp.ts @@ -322,6 +322,7 @@ export function useRdp(): UseRdpReturn { rafScheduled = false; if (fetchPending) return; fetchPending = true; + if (!ctx) return; const rendered = await fetchAndRender(sessionId, width, height, ctx); fetchPending = false; if (rendered && !connected.value) connected.value = true;