Permalink
Browse files

[TorrentEditor] Change a reference equality check to a value equality…

… check
  • Loading branch information...
1 parent 36d3b44 commit 24a944dc6cebc9522c15ac2390c567d471a15838 @alanmcgovern alanmcgovern committed Jul 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/MonoTorrent/MonoTorrent.Common/EditableTorrent.cs
@@ -140,7 +140,7 @@ public void SetCustom (BEncodedString key, BEncodedValue value)
Check.Key (key);
Check.Value (value);
- if (key == InfoKey)
+ if (InfoKey.Equals (key))
CheckCanEditSecure ();
Metadata [key] = value;
}

0 comments on commit 24a944d

Please sign in to comment.