Skip to content

Commit 8e392ed

Browse files
committed
check if more than one servers for port
1 parent b0f6b83 commit 8e392ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/LLMClient.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public async Task<Ret> PostRequest<Res, Ret>(string json, string endpoint, Conte
455455
string errorMessage = "";
456456
if (host == "localhost" && server == null) errorMessage += "No server found!";
457457
if (server != null && !server.serverListening) errorMessage += "Server is not listening!";
458-
if (server != null && LLMUnitySetup.NumServersForPort(port) != 1) errorMessage += "Multiple servers found for port!";
458+
if (server != null && LLMUnitySetup.NumServersForPort(port) > 1) errorMessage += "Multiple servers found for port!";
459459
if (errorMessage != "")
460460
{
461461
Debug.LogError(errorMessage);

0 commit comments

Comments
 (0)