summaryrefslogtreecommitdiff
path: root/toxav/toxav.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/toxav.c')
-rw-r--r--toxav/toxav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c
index dbc06587..2e6326fd 100644
--- a/toxav/toxav.c
+++ b/toxav/toxav.c
@@ -904,7 +904,7 @@ ToxAVCall* call_new(ToxAV* av, uint32_t friend_number, TOXAV_ERR_CALL* error)
904 goto END; 904 goto END;
905 } 905 }
906 906
907 if (m_get_friend_connectionstatus(av->m, friend_number) != 1) { 907 if (m_get_friend_connectionstatus(av->m, friend_number) < 1) {
908 rc = TOXAV_ERR_CALL_FRIEND_NOT_CONNECTED; 908 rc = TOXAV_ERR_CALL_FRIEND_NOT_CONNECTED;
909 goto END; 909 goto END;
910 } 910 }