summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Metrics/Collector.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Metrics/Collector.pm')
-rw-r--r--Bugzilla/Metrics/Collector.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/Bugzilla/Metrics/Collector.pm b/Bugzilla/Metrics/Collector.pm
index 7b2fc3f1b..2f9b6130d 100644
--- a/Bugzilla/Metrics/Collector.pm
+++ b/Bugzilla/Metrics/Collector.pm
@@ -42,6 +42,11 @@ sub end {
$self->{head} = $self->{head}->{parent} if $is_head;
}
+sub cancel {
+ my ($self) = @_;
+ delete $self->{head};
+}
+
sub DESTROY {
my ($self) = @_;
$self->finish() if $self->{head};