Skip to content

Commit 3d53f5d

Browse files
committed
make continuity process requests actually awaitable
1 parent e054b72 commit 3d53f5d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Assets/Talo Game Services/Talo/Runtime/TaloManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private async void DoFlush()
4848
}
4949
}
5050

51-
private void Update()
51+
private async void Update()
5252
{
5353
if (Application.platform == RuntimePlatform.WebGLPlayer)
5454
{
@@ -65,7 +65,7 @@ private void Update()
6565
tmrContinuity += Time.deltaTime;
6666
if (tmrContinuity >= 10f)
6767
{
68-
Talo.Continuity.ProcessRequests();
68+
await Talo.Continuity.ProcessRequests();
6969
tmrContinuity = 0;
7070
}
7171
}

Assets/Talo Game Services/Talo/Runtime/Utils/ContinuityManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void PushRequest(Uri uri, string method, string content, List<HttpHeader>
8181
WriteRequests();
8282
}
8383

84-
public async void ProcessRequests()
84+
public async Task ProcessRequests()
8585
{
8686
if (!HasRequests() || !await Talo.HealthCheck.Ping()) return;
8787

0 commit comments

Comments
 (0)