From 740ab85c8e42dbe8730173a19496748ef5d972f4 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 23 Aug 2014 21:55:53 -0400 Subject: [PATCH] onion_isconnected is the best indicator of if tox is connected. --- toxcore/tox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxcore/tox.c b/toxcore/tox.c index 775fa4cb..6a2d3874 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -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