onion_isconnected is the best indicator of if tox is connected.

This commit is contained in:
irungentoo 2014-08-23 21:55:53 -04:00
parent 08bdf45aa3
commit 740ab85c8e
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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