Commit 45409c00 authored by Juergen Kosel's avatar Juergen Kosel
Browse files

Mark the socket as not connected before releasing socket_mutex

Issue 190 ( https://github.com/eclipse/paho.mqtt.c/issues/190

 ) is
probably caused by some race condition.
One possible cause for such a race condition is in the previous
implementation of MQTTAsync_closeOnly(). Which had released the semaphore
before the socket is marked as unused. This way, another thread may believe,
that it should wait that the socket becomes available (which never happens).

Signed-off-by: default avatarJuergen Kosel <juergen.kosel@softing.com>
parent c06f3c19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment