Skip to content

Commit

Permalink
Update RSFlushHandler.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChryssaAliferi authored Nov 22, 2024
1 parent c7e664d commit 486b31b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Assets/RudderStack/Unity/Scripts/Helpers/RSFlushHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ public void Flush()
public async Task FlushAsync()
{
_timerSemaphore.Release();
await Task.Run(async () =>
{
await FlushImpl();
});
}

private async Task FlushImpl()
Expand Down Expand Up @@ -239,4 +243,4 @@ public void Dispose()
}

}
}
}

0 comments on commit 486b31b

Please sign in to comment.