':return: True if we should stop the crawl phase because of time limit
set by the user, or simply because the user wants to stop the
crawl phase.'

def _should_stop_discovery(self):

    if (not self._running):
        return True
    if (self._w3af_core.status.get_run_time() > self._max_discovery_time):
        if self._report_max_time:
            self._report_max_time = False
            msg = 'Maximum    crawl    time    limit    hit,    no    new    URLs    will    be    added    to    the    queue.'
            om.out.information(msg)
        return True
    return False
