瀏覽代碼

fix: autorequest would sometimes stop autorequest even when it still could autorequest

Kristian Vos 2 年之前
父節點
當前提交
6825d42686
共有 1 個文件被更改,包括 8 次插入10 次删除
  1. 8 10
      frontend/src/pages/Station/index.vue

+ 8 - 10
frontend/src/pages/Station/index.vue

@@ -340,16 +340,14 @@ const autoRequestSong = () => {
 			"autorequest",
 			data => {
 				updateAutoRequestLock(false);
-				if (data.status !== "success") {
-					setTimeout(
-						() => {
-							autoRequestSong();
-						},
-						data.message === "That song is already in the queue."
-							? 5000
-							: 1000
-					);
-				}
+				setTimeout(
+					() => {
+						autoRequestSong();
+					},
+					data.message === "That song is already in the queue."
+						? 5000
+						: 1000
+				);
 			}
 		);
 	}