Skip to content
Snippets Groups Projects
Commit bb08fcfe authored by MaZiFAU's avatar MaZiFAU
Browse files

Bugfix: EternalLoop if Server not found

parent f012cc78
No related branches found
No related tags found
No related merge requests found
...@@ -480,7 +480,8 @@ static string _SendAdd(string path, string body)//, Action<string> uriCallback) ...@@ -480,7 +480,8 @@ static string _SendAdd(string path, string body)//, Action<string> uriCallback)
UnityWebRequestAsyncOperation web = UnityWebRequestAsyncOperation web =
www.SendWebRequest(); www.SendWebRequest();
while (!web.isDone) ; while (!web.isDone // not enough as querry
&& www.result == UnityWebRequest.Result.InProgress) ;
if (www.result == UnityWebRequest.Result.ConnectionError if (www.result == UnityWebRequest.Result.ConnectionError
|| www.result == UnityWebRequest.Result.ProtocolError) || www.result == UnityWebRequest.Result.ProtocolError)
...@@ -489,8 +490,7 @@ static string _SendAdd(string path, string body)//, Action<string> uriCallback) ...@@ -489,8 +490,7 @@ static string _SendAdd(string path, string body)//, Action<string> uriCallback)
//uriCallback(null); //uriCallback(null);
return null; // yield break; return null; // yield break;
} }
else
{
while (!www.downloadHandler.isDone) while (!www.downloadHandler.isDone)
//yield return null //yield return null
; ;
...@@ -504,7 +504,6 @@ static string _SendAdd(string path, string body)//, Action<string> uriCallback) ...@@ -504,7 +504,6 @@ static string _SendAdd(string path, string body)//, Action<string> uriCallback)
return res.uri; // yield break; return res.uri; // yield break;
} }
} }
}
private static uint bypasscc = 0; private static uint bypasscc = 0;
public static void MakeFact(List<Fact> ret, object payload, SOMDoc ServerDefinition, FactRecorder organizer, bool BypassServer) public static void MakeFact(List<Fact> ret, object payload, SOMDoc ServerDefinition, FactRecorder organizer, bool BypassServer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment