Skip to content

Commit 7a3a29e

Browse files
committed
add api timeout for getUpdateInfo
1 parent 416b41d commit 7a3a29e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/apis.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const getUpdateInfo = async (): Promise<
4242
ApiResponse<UpdateInfo | undefined>
4343
> => {
4444
try {
45-
const response = await api.get<UpdateInfo>("/launcher");
45+
const response = await api.get<UpdateInfo>("/launcher", { timeout: 5000 });
4646
return { success: true, data: response.data };
4747
} catch (error) {
4848
Log.debug("Failed to fetch update info:", error);

0 commit comments

Comments
 (0)