Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ private async Task Next()

private async Task Go(bool isNext = false, int scrollCount = 0)
{
if (_disposed) return;
if (_othersIndices.Length == 0) return;

if (scrollCount < 1)
Expand Down Expand Up @@ -432,6 +433,8 @@ protected virtual async ValueTask DisposeAsync(bool disposing)
{
if (_disposed || disposing is false) return;

_disposed = true;

if (_autoPlayTimer is not null)
{
_autoPlayTimer.Elapsed -= AutoPlayTimerElapsed;
Expand All @@ -447,7 +450,5 @@ protected virtual async ValueTask DisposeAsync(bool disposing)
}
catch (JSDisconnectedException) { } // we can ignore this exception here
}

_disposed = true;
}
}
Loading