Skip to content

Commit

Permalink
Fix possible duplicate key exception if patterns names are somehow du…
Browse files Browse the repository at this point in the history
…picated
  • Loading branch information
Piotrekol committed Mar 29, 2018
1 parent baee7c0 commit 5f87e90
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void SetNewMap(MapSearchResult map)
foreach (var s in map.FormatedStrings)
{
if (!s.IsMemoryFormat) //memory pattern is handled elsewhere
output.Add(s.Name, s.GetFormatedPattern());
output[s.Name] = s.GetFormatedPattern();
}
var json = JsonConvert.SerializeObject(output);
_tcpSocketManager.Write(json);
Expand Down

0 comments on commit 5f87e90

Please sign in to comment.