Skip to content

Commit b4013a1

Browse files
committed
下载render中直接返回失败
1 parent 02158c9 commit b4013a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

LiveWallpaper.LocalServer/Hubs/LiveWallpaperHub.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,12 @@ public async Task<BaseApiResult<List<string>>> GetThumbnails(string videoPath)
7979
return BaseApiResult<List<string>>.ExceptionState(ex);
8080
}
8181
}
82+
8283
public async Task<BaseApiResult<WallpaperModel>> ShowWallpaper(string path, string targetScreen)
8384
{
85+
if (AppManager.PlayerDownloader.IsBusy)
86+
return BaseApiResult<WallpaperModel>.ErrorState(ErrorType.NoPlayer, null, null);
87+
8488
var model = await WallpaperApi.ShowWallpaper(path, targetScreen);
8589
await AppManager.SaveCurrentWalpapers();
8690
return model;

0 commit comments

Comments
 (0)