mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
[perm][android] Fix tests + remove httpMetric instances on stop()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user