diff --git a/src/client/spark/Daemons/MDDaemon.cs b/src/client/spark/Daemons/MDDaemon.cs index b6bcfa70b..ea0bdfe9b 100644 --- a/src/client/spark/Daemons/MDDaemon.cs +++ b/src/client/spark/Daemons/MDDaemon.cs @@ -39,7 +39,7 @@ namespace bts { _relay.set_token(_token.Value); _dispose.Add( _ss.Value.subscribei_metadata() - .Select(upd => upd.all.ToDictionary(i => i.SecurityKey, i => i.Strategy)) + .Select(upd => upd.all.Where(i => i.HasStrategy).ToDictionary(i => i.SecurityKey, i => i.Strategy)) .Subscribe(t => { var deleted_synthetic_keys = new HashSet(t.Where(kv => kv.Value.Deleted).Select(kv => kv.Key)); // add back 'undeleted' synthetics @@ -64,4 +64,4 @@ namespace bts { Task.Run(run); } } -} \ No newline at end of file +}