1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

AssertTypeInfo lock fix

This commit is contained in:
Brian Fiete 2022-05-07 06:54:40 -07:00
parent 8dc2cf9652
commit 8a84647bcd

View file

@ -1556,7 +1556,10 @@ namespace IDE
{
String typeInfo = scope String();
var compiler = (compilerId == 0) ? gApp.mBfResolveCompiler : gApp.mBfBuildCompiler;
var system = (compilerId == 0) ? gApp.mBfResolveSystem : gApp.mBfBuildSystem;
system.Lock(0);
compiler.GetTypeInfo(typeName, typeInfo);
system.Unlock();
if (typeInfo != wantTypeInfo)
mScriptManager.Fail("Assert failed: {0} == {1}", typeInfo, wantTypeInfo);