From f0862432026e32cc0e4a7bbd93a51509d507ac9e Mon Sep 17 00:00:00 2001 From: z3bra Date: Tue, 8 Nov 2016 13:42:39 +0100 Subject: Monitor friends connected either via TCP or UDP --- ratox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ratox.c b/ratox.c index 1a9083d..1d74ee7 100644 --- a/ratox.c +++ b/ratox.c @@ -1589,7 +1589,7 @@ loop(void) TAILQ_FOREACH(f, &friendhead, entry) { /* Only monitor friends that are online */ - if (tox_friend_get_connection_status(tox, f->num, NULL) == 1) { + if (tox_friend_get_connection_status(tox, f->num, NULL) != TOX_CONNECTION_NONE) { FD_APPEND(f->fd[FTEXT_IN]); if (f->tx.state == TRANSFER_NONE) -- cgit v1.2.3