LanguageClient: do not accumulate response handler

Change-Id: Icf297ddf09bb64aea1d50fb24efa231df01eaed1
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2022-07-04 08:23:43 +02:00
parent 4180e1b84f
commit 37400e9084

View File

@@ -1646,7 +1646,7 @@ void ClientPrivate::sendPostponedDocumentUpdates(Schedule semanticTokensSchedule
void ClientPrivate::handleResponse(const MessageId &id, const JsonRpcMessage &message)
{
if (auto handler = m_responseHandlers[id])
if (auto handler = m_responseHandlers.take(id))
handler(message);
}