def do_stop_alerts(self, _):
        """ Stops the alerter thread """
        self._stop_thread = True
        if self._alerter_thread.is_alive():
            self._alerter_thread.join()
        else:
            print("The alert thread is already stopped")
def do_stop_alerts ( self , _ ) : self . _stop_thread = True if self . _alerter_thread . is_alive ( ) : self . _alerter_thread . join ( ) else : print ( "The alert thread is already stopped" )
Stops the alerter thread