mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
onion_isconnected is the best indicator of if tox is connected.
This commit is contained in:
parent
08bdf45aa3
commit
740ab85c8e
|
@ -786,7 +786,7 @@ int tox_bootstrap_from_address(Tox *tox, const char *address, uint16_t port, con
|
|||
int tox_isconnected(const Tox *tox)
|
||||
{
|
||||
const Messenger *m = tox;
|
||||
return DHT_isconnected(m->dht) || onion_isconnected(m->onion_c);
|
||||
return onion_isconnected(m->onion_c);
|
||||
}
|
||||
|
||||
/* Return the time in milliseconds before tox_do() should be called again
|
||||
|
|
Loading…
Reference in New Issue
Block a user