#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

pull/275/head^2
Andrei Ismail 11 years ago
parent 1d838dab3a
commit e464c7c1df

@ -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

Loading…
Cancel
Save