Skip to content

Commit 9caa4da

Browse files
author
Stewart Miles
committed
Fixed occasional hang when configuring VersionHandler in batch mode.
Change-Id: Ia1f705b40cf57a2e1bda5d433b0276dd8a6ba0a9
1 parent e71269b commit 9caa4da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

source/VersionHandlerImpl/src/VersionHandlerImpl.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,10 @@ private static void NotifyWhenCompliationComplete(bool forceNotification) {
15351535
Log("Compiling...", verbose: true);
15361536
}
15371537
compiling = true;
1538-
return false;
1538+
// In batch mode this can get stuck forever as PollOnUpdateUntilComplete()
1539+
// will block the main thread which prevents the EditorApplication.isCompiling
1540+
// flag from being updated by the editor.
1541+
return ExecutionEnvironment.InBatchMode;
15391542
}
15401543
if (compiling) {
15411544
Log("Compilation complete.", verbose: true);

0 commit comments

Comments
 (0)