[perm][android] Fix tests + remove httpMetric instances on stop()

This commit is contained in:
Elliot Hesp
2018-07-18 13:22:00 +01:00
parent 85f06deac2
commit 6b87ae7056
4 changed files with 31 additions and 36 deletions

View File

@@ -178,6 +178,7 @@ public class RNFirebasePerformance extends ReactContextBaseJavaModule {
@ReactMethod
public void stopHttpMetric(String url, String httpMethod, Promise promise) {
getOrCreateHttpMetric(url, httpMethod).stop();
httpMetrics.remove(url + httpMethod);
promise.resolve(null);
}