소스 검색

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
+				);
 			}
 		);
 	}