You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (detach_get_error(detach, &error) != 0)
{
error = NULL;
}
remove_all_pending_deliveries(link_instance, true);
// signal link detach received in order to handle cases like redirect
if (link_instance->on_link_detach_received_event_subscription.on_link_detach_received != NULL)
{
link_instance->on_link_detach_received_event_subscription.on_link_detach_received(link_instance->on_link_detach_received_event_subscription.context, error);
}
if (error != NULL)
{
set_link_state(link_instance, LINK_STATE_ERROR);
error_destroy(error);
}
else
{
set_link_state(link_instance, LINK_STATE_DETACHED);
}
In the code above when the function returns detach_get_error returns 0 but the error is not null. Therefore the link state is set to LINK_STATE_ERROR. This is when building on Ubuntu disco. In my case this causes azure-iot-sdk-c to fail.
The text was updated successfully, but these errors were encountered:
In the code above when the function returns detach_get_error returns 0 but the error is not null. Therefore the link state is set to LINK_STATE_ERROR. This is when building on Ubuntu disco. In my case this causes azure-iot-sdk-c to fail.
The text was updated successfully, but these errors were encountered: