Re-ordered criteria for datagram matching.
authorFlorian Pose <fp@igh-essen.com>
Thu, 09 Aug 2007 14:40:29 +0000
changeset 690 5e231f6a3d2e
parent 689 880b556a6efc
child 691 77b79a29e0e7
Re-ordered criteria for datagram matching.
master/master.c
--- a/master/master.c	Thu Aug 09 14:38:18 2007 +0000
+++ b/master/master.c	Thu Aug 09 14:40:29 2007 +0000
@@ -705,9 +705,9 @@
         // search for matching datagram in the queue
         matched = 0;
         list_for_each_entry(datagram, &master->datagram_queue, queue) {
-            if (datagram->state == EC_DATAGRAM_SENT
+            if (datagram->index == datagram_index
+                && datagram->state == EC_DATAGRAM_SENT
                 && datagram->type == datagram_type
-                && datagram->index == datagram_index
                 && datagram->data_size == data_size) {
                 matched = 1;
                 break;