« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index d838a1d..b16a5ec 100644
--- a/ui.js
+++ b/ui.js
@@ -1029,9 +1029,9 @@ class AppElement extends FocusElement {
 
     if (isGroup(item)) {
       await Promise.all(item.items.map(x => this.processMetadata(x, reprocess, false)))
-    } else {
+    } else process: {
       if (!reprocess && this.getMetadataFor(item)) {
-        return
+        break process
       }
 
       await this.throttleMetadata(async () => {