aboutsummaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorAdam Cigánek2018-05-14 12:22:20 +0200
committerAdam Cigánek2018-05-15 15:09:40 +0200
commitf25240cfe6a4b7f030b2dfd5db1365b4de44301d (patch)
treeba44cad8086685db559fae989e23ca0caec0e796 /modules/mono
parent81b1d3c846de263cf843e9e0e9d7c0c0a94f65c8 (diff)
downloadgodot-f25240cfe6a4b7f030b2dfd5db1365b4de44301d.tar.gz
godot-f25240cfe6a4b7f030b2dfd5db1365b4de44301d.tar.zst
godot-f25240cfe6a4b7f030b2dfd5db1365b4de44301d.zip
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/glue/cs_files/GodotTaskScheduler.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/cs_files/GodotTaskScheduler.cs b/modules/mono/glue/cs_files/GodotTaskScheduler.cs
index 6bf25a89d..3d23ec10f 100644
--- a/modules/mono/glue/cs_files/GodotTaskScheduler.cs
+++ b/modules/mono/glue/cs_files/GodotTaskScheduler.cs
@@ -14,6 +14,7 @@ namespace Godot
public GodotTaskScheduler()
{
Context = new GodotSynchronizationContext();
+ SynchronizationContext.SetSynchronizationContext(Context);
}
protected sealed override void QueueTask(Task task)
@@ -57,7 +58,6 @@ namespace Godot
public void Activate()
{
- SynchronizationContext.SetSynchronizationContext(Context);
ExecuteQueuedTasks();
Context.ExecutePendingContinuations();
}