Manav Rathi vor 1 Jahr
Ursprung
Commit
4dd7d3b087
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      web/apps/cast/src/pages/slideshow.tsx

+ 2 - 2
web/apps/cast/src/pages/slideshow.tsx

@@ -26,10 +26,10 @@ export default function Slideshow() {
                 const urlGenerator = imageURLGenerator(ensure(readCastData()));
                 const urlGenerator = imageURLGenerator(ensure(readCastData()));
                 while (!stop) {
                 while (!stop) {
                     const { value: url, done } = await urlGenerator.next();
                     const { value: url, done } = await urlGenerator.next();
-                    if (done) {
+                    if (done || !url) {
                         // No items in this callection can be shown.
                         // No items in this callection can be shown.
                         setIsEmpty(true);
                         setIsEmpty(true);
-                        // Go back to pairing screen after 3 seconds.
+                        // Go back to pairing screen after 5 seconds.
                         setTimeout(pair, 5000);
                         setTimeout(pair, 5000);
                         return;
                         return;
                     }
                     }