mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix behaviour of group api function
The function that tells us if we're connected to a group now behaves according to the documentation and returns true if we're attempting to connect to a group, rather than only returning true if we've connected with other peers
This commit is contained in:
parent
63f993a331
commit
b2ca401543
|
@ -1 +1 @@
|
|||
3d28c914487efaae4336af17b221049c73249fb917d672f5ae6d9c092522a24f /usr/local/bin/tox-bootstrapd
|
||||
b0fafb30bffe21889f06a95edd3867f29a2203d30c2d7e7bf3ef646267f08d64 /usr/local/bin/tox-bootstrapd
|
||||
|
|
|
@ -3050,7 +3050,7 @@ bool tox_group_is_connected(const Tox *tox, uint32_t group_number, Tox_Err_Group
|
|||
|
||||
SET_ERROR_PARAMETER(error, TOX_ERR_GROUP_IS_CONNECTED_OK);
|
||||
|
||||
const bool ret = chat->connection_state == CS_CONNECTED;
|
||||
const bool ret = chat->connection_state == CS_CONNECTED || chat->connection_state == CS_CONNECTING;
|
||||
tox_unlock(tox);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue
Block a user