

def shutdown(self):
    deferreds = []
    LOGGER.debug(('%s stopping on main HTTP interface.' % self.name))
    d = self.site_port.stopListening()
    if isinstance(d, Deferred):
        deferreds.append(d)
    if (len(deferreds) > 0):
        d = DeferredList(deferreds)
        d.addCallback(self._shutdownCallback)
        return d
    else:
        return self._shutdownCallback(None)

dataset/ETHPy150Open wehriam/awspider/awspider/servers/interface.py InterfaceServer.shutdown/original