From 2f65cd3ada6e130c07826e935ea01841a7b671f0 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 24 Oct 2019 01:17:43 -0400 Subject: Ignore further CAP END --- client.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 3e6c2f9..18aef87 100644 --- a/client.c +++ b/client.c @@ -130,8 +130,10 @@ static void handleCap(struct Client *client, struct Message msg) { if (!msg.params[0]) msg.params[0] = ""; if (!strcmp(msg.params[0], "END")) { - client->need &= ~NeedCapEnd; - if (!client->need) stateSync(client); + if (client->need & NeedCapEnd) { + client->need &= ~NeedCapEnd; + if (!client->need) stateSync(client); + } } else if (!strcmp(msg.params[0], "LS")) { client->need |= NeedCapEnd; -- cgit 1.4.1