Skip to content

Commit e171567

Browse files
committed
Don't silently ignore exceptions in MainThreadSynchronizationContext
1 parent b2ca22a commit e171567

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/com.unity.editor.tasks/Editor/Schedulers/MainThreadSynchronizationContext.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,7 @@ public override void Post(SendOrPostCallback d, object state)
4040
void Update()
4141
{
4242
while (m_Callbacks.TryDequeue(out var callback))
43-
{
44-
try
45-
{
46-
callback();
47-
}
48-
catch
49-
{
50-
// Ignore exceptions.
51-
}
52-
}
43+
callback();
5344
}
5445
}
5546
#else

0 commit comments

Comments
 (0)