def stop(self): from dht import dht_service from main.config import conf conf().removeCallback('services/entangled-dht/udp-port') dht_service.disconnect() dht_service.shutdown() return True
def stop(self): from dht import dht_service from main.config import conf dht_service.node().remove_rpc_callback('request') dht_service.node().remove_rpc_callback('store') conf().removeCallback('services/entangled-dht/udp-port') dht_service.disconnect() dht_service.shutdown() return True
def stop(self): from dht import dht_records from dht import dht_service from main.config import conf for layer_id in dht_records.LAYERS_REGISTRY.keys(): dht_service.close_layer(layer_id) dht_service.node().remove_rpc_callback('request') dht_service.node().remove_rpc_callback('store') conf().removeConfigNotifier('services/entangled-dht/udp-port') dht_service.disconnect() dht_service.shutdown() return True
def stop(self): from dht import dht_service from main.config import conf conf().removeCallback('services/entangled-dht/udp-port') dht_service.shutdown() return True