Azure IoT / iothub_http_transport

Dependents:   iothub_client_sample_http simplesample_http temp_sensor_anomaly

Files at this revision

API Documentation at this revision

Comitter:
AzureIoTClient
Date:
Tue Sep 29 17:02:00 2015 -0700
Parent:
3:4e9296134ffb
Child:
5:bcdad2e5c293
Commit message:
v1.0.0-preview.3

Changed in this revision

iothubtransporthttp.c Show annotated file Show diff for this revision Revisions of this file
--- a/iothubtransporthttp.c	Tue Sep 22 20:36:43 2015 -0700
+++ b/iothubtransporthttp.c	Tue Sep 29 17:02:00 2015 -0700
@@ -921,11 +921,9 @@
 static void reversePutListBackIn(PDLIST_ENTRY source, PDLIST_ENTRY destination)
 {
     /*this function takes a list, and inserts it in another list. When done in the context of this file, it reverses the effects of a not-able-to-send situation*/
-    PDLIST_ENTRY afterHead;
-    while ((afterHead = DList_RemoveHeadList(source)) != source)
-    {
-        DList_InsertHeadList(destination, afterHead);
-    }
+    DList_AppendTailList(destination->Flink, source);
+    DList_RemoveEntryList(source);
+    DList_InitializeListHead(source);
 }
 
 static void DoEvent(TRANSPORT_HANDLE handle, IOTHUB_CLIENT_LL_HANDLE iotHubClientHandle)