Explain the try-finally clause in Sync.cs in a comment

This commit is contained in:
abcdefg30
2021-10-11 14:18:04 +02:00
committed by teinarss
parent b366db7175
commit e8e0e155e5

View File

@@ -187,6 +187,7 @@ namespace OpenRA
var sync = checkSyncHash ? world.SyncHash() : 0;
inUnsyncedCode = true;
// Running this inside a try with a finally statement means isUnsyncedCode is set to false again as soon as fn completes
try
{
return fn();