Skip to content

Commit 4851168

Browse files
committed
fix a bug where TileJson request ran callbacks twice (second time with null object)
1 parent d545a54 commit 4851168

File tree

1 file changed

+4
-2
lines changed
  • Runtime/Mapbox/BaseModule/Data/Platform/TileJSON

1 file changed

+4
-2
lines changed

Runtime/Mapbox/BaseModule/Data/Platform/TileJSON/TileJSON.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ public IAsyncRequest Get(string tilesetName, Action<TileJSONResponse> callback)
4444
}
4545
callback(tileJSONResponse);
4646
}
47-
48-
callback(null);
47+
else
48+
{
49+
callback(null);
50+
}
4951
}
5052
, _timeout
5153
);

0 commit comments

Comments
 (0)