From 576db4e264535fecfcf6b5180e0b41091cb85f47 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Sat, 8 Jul 2017 08:15:12 +0100 Subject: [Bristol] Switch Open311 warnings off, false +ves. --- perllib/Open311.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perllib/Open311.pm b/perllib/Open311.pm index 999cb65cb..da5a0a377 100644 --- a/perllib/Open311.pm +++ b/perllib/Open311.pm @@ -72,8 +72,8 @@ sub to_bristol { sub warn_failure { my ($obj, $problem) = @_; # Special case a poorly behaving Open311 server + return 0 if to_bristol($problem || $obj); my $threshold = 1; - $threshold = 5 if to_bristol($problem || $obj); return $obj->send_fail_count && $obj->send_fail_count == $threshold; } -- cgit v1.2.3