Robert Marshall commented 6 年之前
```
Unhandled Exception:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary`2+Enumerator[TKey,TValue].MoveNext () [0x00013] in <2943701620b54f86b436d3ffad010412>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00038] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at HAServer.Core.MessageBus.PublishMessage (System.String topic, System.String message, HAServer.Interfaces.Core.ISubscriber publisher) [0x0003a] in <e2e2d19a8a534372b4ab96a83bee4161>:0
at HAServer.MQTT.MqttManager.MessageRecieved (System.Object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishEventArgs e) [0x0001d] in <2ced5fa1fa7b4e52b4569c25bc8e0ab1>:0
at uPLibrary.Networking.M2Mqtt.MqttClient.OnMqttMsgPublishReceived (uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublish publish) [0x00032] in <0f498b903ed9490e9718f3f579c8c9b3>:0
at uPLibrary.Networking.M2Mqtt.MqttClient.DispatchEventThread () [0x00119] in <0f498b903ed9490e9718f3f579c8c9b3>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <2943701620b54f86b436d3ffad010412>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary`2+Enumerator[TKey,TValue].MoveNext () [0x00013] in <2943701620b54f86b436d3ffad010412>:0
at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x0004e] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at System.Linq.Enumerable+SelectManySingleSelectorIterator`2[TSource,TResult].MoveNext () [0x00038] in <7aa7d6192efc4d31a9896d7a49ef2104>:0
at HAServer.Core.MessageBus.PublishMessage (System.String topic, System.String message, HAServer.Interfaces.Core.ISubscriber publisher) [0x0003a] in <e2e2d19a8a534372b4ab96a83bee4161>:0
at HAServer.MQTT.MqttManager.MessageRecieved (System.Object sender, uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublishEventArgs e) [0x0001d] in <2ced5fa1fa7b4e52b4569c25bc8e0ab1>:0
at uPLibrary.Networking.M2Mqtt.MqttClient.OnMqttMsgPublishReceived (uPLibrary.Networking.M2Mqtt.Messages.MqttMsgPublish publish) [0x00032] in <0f498b903ed9490e9718f3f579c8c9b3>:0
at uPLibrary.Networking.M2Mqtt.MqttClient.DispatchEventThread () [0x00119] in <0f498b903ed9490e9718f3f579c8c9b3>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <2943701620b54f86b436d3ffad010412>:0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <2943701620b54f86b436d3ffad010412>:0
```