remove obsoletes

This commit is contained in:
runette committed 2024-12-10 16:07:25 +00:00
1 parent 4b2c383ca5
commit 088742f710
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -257,7 +257,7 @@ namespace Mapbox.Platform
// additional string.empty check for apiResponse.error:
// on UWP isNetworkError is sometimes set to true despite all being well
if (apiResponse.isNetworkError && !string.IsNullOrEmpty(apiResponse.error))
if (apiResponse.result == UnityWebRequest.Result.ConnectionError && !string.IsNullOrEmpty(apiResponse.error))
{
response.AddException(new Exception(apiResponse.error));
}
+1 -1
View File
@@ -85,7 +85,7 @@ namespace Mapbox.Unity.Telemetry
while (!postRequest.isDone) { yield return null; }
if (!postRequest.isNetworkError)
if (postRequest.result != UnityWebRequest.Result.ConnectionError)
{
#else
var headers = new Dictionary<string, string>();
+2 -2
View File
@@ -22,7 +22,7 @@
{
TotalTime = 0;
_currentTest = 1;
_map = FindObjectOfType<AbstractMap>();
_map = FindFirstObjectByType<AbstractMap>();
_mapVisualizer = _map.MapVisualizer;
_mapVisualizer.OnMapVisualizerStateChanged += (s) =>
@@ -67,4 +67,4 @@
//_map.Reset();
}
}
}
}