fix fix bootstrap
This commit is contained in:
parent
4e17f27231
commit
f3ae1dd7ca
@ -198,7 +198,7 @@ class Tox(object):
|
||||
"""
|
||||
tox_err_bootstrap = c_int()
|
||||
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
|
||||
if tox_err_bootstrap == TOX_ERR_BOOTSTRAP['OK']:
|
||||
return bool(result)
|
||||
|
Loading…
Reference in New Issue
Block a user