Commit faaf4a70 authored by Ian Craggs's avatar Ian Craggs

Don't remove socket in one case: gives error messages when reconnecting at…

Don't remove socket in one case: gives error messages when reconnecting at version 3 after version 4
Bug: 442400
parent 1eb002b1
......@@ -1473,8 +1473,8 @@ thread_return_type WINAPI MQTTAsync_receiveThread(void* n)
/* find client corresponding to socket */
if (ListFindItem(handles, &sock, clientSockCompare) == NULL)
{
Log(LOG_ERROR, -1, "Could not find client corresponding to socket %d - removing socket", sock);
Socket_close(sock);
Log(TRACE_MINIMUM, -1, "Could not find client corresponding to socket %d", sock);
/* Socket_close(sock); - removing socket in this case is not necessary (Bug 442400) */
continue;
}
m = (MQTTAsyncs*)(handles->current->content);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment