From e464c7c1dfe96896ec43b612e468bf777ea56d7d Mon Sep 17 00:00:00 2001 From: Andrei Ismail Date: Mon, 22 Jun 2015 11:54:42 +0200 Subject: [PATCH] #292 Don't rely on going to the loop again to exit -- exit on the spot when too many failed connection attempts have been detected --- test/proxysql_ping_thread.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/proxysql_ping_thread.py b/test/proxysql_ping_thread.py index dc3a37e00..8a09f40a6 100644 --- a/test/proxysql_ping_thread.py +++ b/test/proxysql_ping_thread.py @@ -62,6 +62,7 @@ class ProxySQL_Ping_Thread(Thread): if self.failed_connections >= ProxySQL_Ping_Thread.FAILED_CONNECTIONS_BEFORE_ALERT: self.send_error_email() self.running = False + return def stop(self): self.running = False