Index: /trunk/FACT++/src/ratecontrol.cc
===================================================================
--- /trunk/FACT++/src/ratecontrol.cc	(revision 12504)
+++ /trunk/FACT++/src/ratecontrol.cc	(revision 12505)
@@ -50,4 +50,5 @@
     pair<Time, int> fStatusDim;
     pair<Time, int> fStatusFTM;
+    pair<Time, int> fStatusRS;
 
     DimStampedInfo fDim;
@@ -55,4 +56,5 @@
     DimStampedInfo fRates;
     DimStampedInfo fStatic;
+    DimStampedInfo fRateScan;
 
 //    DimDescribedService fDimData;
@@ -348,4 +350,10 @@
             return;
         }
+        if (curr==&fRateScan)
+        {
+            fStatusRS = GetNewState(fRateScan);
+            fStatusRS.second = curr->getSize()==4 ? curr->getInt() : 0;
+            return;
+        }
 
         static vector<uint8_t> counter(160);
@@ -371,4 +379,7 @@
 
             if (!fTriggerOn && !fEnabled)
+                return;
+
+            if (fStatusRS.second==5)
                 return;
 
@@ -515,5 +526,5 @@
         // At least one subsystem is not connected
         //        if (fStatusFTM.second>=FTM::kConnected)
-        return fTriggerOn && fEnabled ? kStateInProgress : kStateConnected;
+        return fTriggerOn && fEnabled && fStatusRS.second!=5 ? kStateInProgress : kStateConnected;
     }
 
