Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… check
  • Loading branch information...
commit 24a944dc6cebc9522c15ac2390c567d471a15838 1 parent 36d3b44
Alan McGovern alanmcgovern authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/MonoTorrent/MonoTorrent.Common/EditableTorrent.cs
2  src/MonoTorrent/MonoTorrent.Common/EditableTorrent.cs
View
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.