Преглед изворни кода

Update ua_services_subscription.c

ChaCha пре 7 година
родитељ
комит
a1b0fa76a1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/ua_services_subscription.c

+ 1 - 1
src/server/ua_services_subscription.c

@@ -390,7 +390,7 @@ Operation_SetMonitoringMode(UA_Server *server, UA_Session *session,
         return;
 
     mon->monitoringMode = smc->monitoringMode;
-    if(mon->monitoringMode == UA_MONITORINGMODE_REPORTING)
+    if(mon->monitoringMode == UA_MONITORINGMODE_REPORTING) {
         MonitoredItem_registerSampleCallback(server, mon);
     } else if (mon->monitoringMode == UA_MONITORINGMODE_DISABLED) {
         /*  Setting the mode to DISABLED causes all queued Notifications to be delete */