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:
parent
8dc2cf9652
commit
8a84647bcd
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue