|
@@ -1359,10 +1359,13 @@ namespace NB_IOT_TCP_HP_SOCKET
|
|
|
}
|
|
|
if (cm.IsEnd)
|
|
|
{
|
|
|
-
|
|
|
-
|
|
|
- ProtocolAnalysisTools.SaveRecordNew(meterHis[sourceNumber]);
|
|
|
- meterHis.Remove(sourceNumber);
|
|
|
+ if (meterHis.Count > 0 && meterHis.ContainsKey(sourceNumber))
|
|
|
+ {
|
|
|
+
|
|
|
+
|
|
|
+ ProtocolAnalysisTools.SaveRecordNew(meterHis[sourceNumber]);
|
|
|
+ meterHis.Remove(sourceNumber);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|