def stop(self): requests.get("{}{}".format(self.url, self.stop_route)) wait.until_not(self.thread.is_alive, self.stop_timeout)
def stop(self): self.thread.kill() self.thread.join() wait.until_not(self.thread.is_alive, self.stop_timeout) self.started = False