def stop ( self ) : with self . lock : self . halting = True self . go . clear ( )
python thread stop self
Stops the playing thread and close
def stop(self):
    """ Stops the playing thread and close """
    with self.lock:
      self.halting = True
      self.go.clear()