Skip to content

Commit 055f834

Browse files
committed
Skip MCP server auto-start if binary download fails or is unavailable
1 parent 73c737e commit 055f834

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Unity-MCP-Plugin/Assets/root/Editor/Scripts/McpServerManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ static McpServerManager()
7272
DownloadServerBinaryIfNeeded()
7373
.ContinueWith(task =>
7474
{
75+
if (task.IsFaulted || !task.Result)
76+
return; // Failed to download binaries, skip auto-start
77+
7578
if (!task.Result)
7679
return; // No binaries available (either in CI or failed to download), skip auto-start
7780

0 commit comments

Comments
 (0)