Skip to content

Commit

Permalink
Use the BEncodedValue.Clone method in Torrent.ToDictionary ()
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcgovern committed Oct 9, 2010
1 parent 7388a53 commit 6b2787d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MonoTorrent/MonoTorrent.Common/Torrent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ internal byte [] ToBytes ()
internal BEncodedDictionary ToDictionary ()
{
// Give the user a copy of the original dictionary.
return (BEncodedDictionary) BEncodedValue.Decode (ToBytes ());
return BEncodedValue.Clone (originalDictionary);
}

public override string ToString()
Expand Down

0 comments on commit 6b2787d

Please sign in to comment.