Fix the active network task not re-enqueued when suspended.
This commit is contained in:
@@ -57,6 +57,7 @@ namespace Cryville.Common.Unity {
|
|||||||
suspended = true;
|
suspended = true;
|
||||||
if (currentNetworkTask != null) {
|
if (currentNetworkTask != null) {
|
||||||
currentNetworkTask.Cancel();
|
currentNetworkTask.Cancel();
|
||||||
|
networkTasks.Enqueue(currentNetworkTask);
|
||||||
currentNetworkTask = null;
|
currentNetworkTask = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user