Don't wait for GUILD_SYNC on login

For whatever reason discord stopped responding to REQUEST_SYNC
opcode(12) so we timeout on login. Temporary ignore the issue and assume
we have completed connections even though we are missing guild info.

I am no longer sure of the full list of effects this will have, we will
surely lose guild presence info.

This is a workaround for #201 and should be reverted once that is
properly fixed.

Signed-off-by: Artem Savkov <artem.savkov@gmail.com>
This commit is contained in:
Artem Savkov 2020-02-05 21:47:22 +01:00
parent b26bc599e4
commit 44eab7466b
1 changed files with 3 additions and 3 deletions

View File

@ -880,11 +880,11 @@ gboolean discord_parse_message(struct im_connection *ic, gchar *buf, guint64 siz
discord_handle_server(ic, ginfo, ACTION_CREATE);
}
}
} else {
dd->state = WS_READY;
imcb_connected(ic);
}
dd->state = WS_READY;
imcb_connected(ic);
json_value *pcs = json_o_get(data, "private_channels");
if (pcs != NULL && pcs->type == json_array) {
for (int pcidx = 0; pcidx < pcs->u.array.length; pcidx++) {