def stop(self):
        """
        Stops the server.

        If the server is not running, this method has no effect.
        """
        if self.started:
            try:
                self.httpd.shutdown()
                self.httpd.server_close()
                self.server_thread.join()
                self.server_thread = None
                self.logger.info("Stopped http server on %s:%s" % (self.host, self.port))
            except __HOLE__:
                pass
            self.started = False
        self.httpd = None
dataset/ETHPy150Open w3c/wptserve/wptserve/server.py/WebTestHttpd.stop