Skip to content

Commit

Permalink
woops
Browse files Browse the repository at this point in the history
  • Loading branch information
LolaLollipop committed Nov 29, 2023
1 parent 809e4ca commit 200be59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RueI/UnityAlternative.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public interface IAsyncOperation : IDisposable
/// </summary>
/// <param name="span">How long until the action should be ran.</param>
/// <param name="action">The action to run when finished.</param>
/// <returns>A <see cref="IAsyncOperation"/> to use.</returns>
public abstract IAsyncOperation PerformAsync(TimeSpan span, Action action);

private static UnityAlternative GetProvider()
Expand Down
4 changes: 2 additions & 2 deletions RueI/eMEC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ public void Pause()
/// </summary>
public void Resume()
{
if (IsRunning && isPaused)
if (IsRunning && isPaused && storedTimeLeft != null)
{
operation = Provider.PerformAsync(Length.Value, () =>
operation = Provider.PerformAsync(storedTimeLeft.Value, () =>
{
Action();
ResetState();
Expand Down

0 comments on commit 200be59

Please sign in to comment.