Fix the active network task not re-enqueued when suspended.

This commit is contained in:
2023-06-22 13:22:23 +08:00
parent 8955b69cdf
commit 60cc763cd0

View File

@@ -57,6 +57,7 @@ namespace Cryville.Common.Unity {
suspended = true;
if (currentNetworkTask != null) {
currentNetworkTask.Cancel();
networkTasks.Enqueue(currentNetworkTask);
currentNetworkTask = null;
}
}