def stop(self, graceful=True):
        """\
        Stop workers
        
        :attr graceful: boolean, If True (the default) workers will be
        killed gracefully  (ie. trying to wait for the current connection)
        """
        self.LISTENER = None
        sig = signal.SIGQUIT
        if not graceful:
            sig = signal.SIGTERM
        limit = time.time() + self.timeout
        while self.WORKERS and limit < time.time():
            self.kill_workers(sig)
            gevent.sleep(0.1)
            self.reap_workers()
        self.kill_workers(signal.SIGKILL)
dataset/ETHPy150Open benoitc/tproxy/tproxy/arbiter.py/Arbiter.stop/swapped operands of `<`