Explain the try-finally clause in Sync.cs in a comment
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user