fix fix bootstrap
This commit is contained in:
parent
4e17f27231
commit
f3ae1dd7ca
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ class Tox(object):
|
||||||
"""
|
"""
|
||||||
tox_err_bootstrap = c_int()
|
tox_err_bootstrap = c_int()
|
||||||
result = Tox.libtoxcore.tox_bootstrap(self._tox_pointer, c_char_p(address), c_uint16(port),
|
result = Tox.libtoxcore.tox_bootstrap(self._tox_pointer, c_char_p(address), c_uint16(port),
|
||||||
c_char_p(string_to_bin(public_key)), addressof(tox_err_bootstrap))
|
string_to_bin(public_key), addressof(tox_err_bootstrap))
|
||||||
tox_err_bootstrap = tox_err_bootstrap.value
|
tox_err_bootstrap = tox_err_bootstrap.value
|
||||||
if tox_err_bootstrap == TOX_ERR_BOOTSTRAP['OK']:
|
if tox_err_bootstrap == TOX_ERR_BOOTSTRAP['OK']:
|
||||||
return bool(result)
|
return bool(result)
|
||||||
|
|
Loading…
Reference in a new issue