Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Memory leak fix
Browse files Browse the repository at this point in the history
ver bump
  • Loading branch information
ballfn committed Jul 9, 2022
1 parent 185bf03 commit 4e572c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions NowWatching/NowWatching.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static class BuildInfo
{
public const string Name = "NowWatching";
public const string Author = "ballfun";
public const string Version = "0.2.1";
public const string Version = "0.2.2";
}

public class Mod : MelonMod
Expand Down Expand Up @@ -94,12 +94,12 @@ public override void OnUpdate()
{
if (LastPlay != null && (WatchUI.IsUIOpen || AutoFetch.Value) && LastPlay.UpdateNeeded)
{
WatchUI.UpdateInfo();
LastPlay.UpdateNeeded = false;
if (!LastPlay.ThumbnailRequested)
if (!LastPlay.ThumbnailRequested&&!LastPlay.ThumbnailFetched)
{
GetThumbnail(ref LastPlay);
}
WatchUI.UpdateInfo();
}
}

Expand Down Expand Up @@ -202,7 +202,7 @@ static void GetThumbnail(ref VidLog log)

static IEnumerator DownloadImage(VidLog log)
{
if (log.ThumbnailRequested)
if (log.ThumbnailRequested||log.ThumbnailFetched)
{
yield break;
}
Expand Down

0 comments on commit 4e572c0

Please sign in to comment.