diff options
author | z3bra <contactatz3bradotorg> | 2016-11-08 13:42:39 +0100 |
---|---|---|
committer | z3bra <contactatz3bradotorg> | 2016-11-08 16:47:52 +0100 |
commit | f0862432026e32cc0e4a7bbd93a51509d507ac9e (patch) | |
tree | a8c3c976398034631b4bb507be5de13de6bda7b7 /ratox.c | |
parent | bfc61ad1472843bb515394f95901c2d54889825f (diff) |
Monitor friends connected either via TCP or UDP
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |