diff --git a/python/opendht.pyx b/python/opendht.pyx index 946952822dd8d20cf6f4e3c88db560bf6dab63f9..1ce761a0765ff7967244a79c75c77931a2d7386c 100644 --- a/python/opendht.pyx +++ b/python/opendht.pyx @@ -333,7 +333,7 @@ cdef class DhtRunner(_WithID): return h def getNodeId(self): return self.thisptr.get().getNodeId().toString() - def bootstrap(self, SockAddr addr, done_cb=None): + def ping(self, SockAddr addr, done_cb=None): if done_cb: cb_obj = {'done':done_cb} ref.Py_INCREF(cb_obj) @@ -350,7 +350,7 @@ cdef class DhtRunner(_WithID): lock.notify() with lock: pending += 1 - self.bootstrap(addr, done_cb=tmp_done) + self.ping(addr, done_cb=tmp_done) while pending > 0: lock.wait() return ok