summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorz3bra <contactatz3bradotorg>2016-11-08 13:42:39 +0100
committerz3bra <contactatz3bradotorg>2016-11-08 16:47:52 +0100
commitf0862432026e32cc0e4a7bbd93a51509d507ac9e (patch)
treea8c3c976398034631b4bb507be5de13de6bda7b7 /ratox.c
parentbfc61ad1472843bb515394f95901c2d54889825f (diff)
Monitor friends connected either via TCP or UDP
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
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)