Bläddra i källkod

Move comment about notification deletion to the right place

Julius Pfrommer 6 år sedan
förälder
incheckning
0a338f2898
2 ändrade filer med 3 tillägg och 6 borttagningar
  1. 3 0
      src/server/ua_subscription.c
  2. 0 6
      src/server/ua_subscription_datachange.c

+ 3 - 0
src/server/ua_subscription.c

@@ -26,6 +26,9 @@ void UA_Notification_delete(UA_Notification *n) {
     } else if (n->mon->monitoredItemType == UA_MONITOREDITEMTYPE_EVENTNOTIFY) {
         UA_Array_delete(n->data.event.fields.eventFields, n->data.event.fields.eventFieldsSize,
                         &UA_TYPES[UA_TYPES_VARIANT]);
+        /* EventFilterResult currently isn't being used
+         * UA_EventFilterResult_delete(notification->data.event->result);
+         */
     }
     UA_free(n);
 }

+ 0 - 6
src/server/ua_subscription_datachange.c

@@ -67,12 +67,6 @@ void UA_MonitoredItem_delete(UA_Server *server, UA_MonitoredItem *monitoredItem)
             TAILQ_REMOVE(&monitoredItem->queue, notification, listEntry);
             TAILQ_REMOVE(&sub->notificationQueue, notification, globalEntry);
             --sub->notificationQueueSize;
-            /*
-            if (monitoredItem->monitoredItemType == UA_MONITOREDITEMTYPE_EVENTNOTIFY) {
-                 EventFilterResult currently isn't being used
-                UA_EventFilterResult_delete(notification->data.event->result);
-            }
-            */
             UA_Notification_delete(notification);
         }
         monitoredItem->queueSize = 0;