Author: alanmc
Date: 2007-06-06 11:51:52 -0400 (Wed, 06 Jun 2007)
New Revision: 78759
Modified:
trunk/bitsharp/src/MonoTorrent/Client/Encryption/PeerBEncryption.cs
Log:
Fixed potential threading issue
Modified: trunk/bitsharp/src/MonoTorrent/Client/Encryption/PeerBEncryption.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/Client/Encryption/PeerBEncryption.cs
2007-06-06 15:51:37 UTC (rev 78758)
+++ trunk/bitsharp/src/MonoTorrent/Client/Encryption/PeerBEncryption.cs
2007-06-06 15:51:52 UTC (rev 78759)
@@ -45,21 +45,6 @@
private AsyncCallback gotPadCCallback;
private AsyncCallback gotInitialPayloadCallback;
- public PeerBEncryption(TorrentManagerCollection torrents,
EncryptionType minCryptoAllowed)
- : base(minCryptoAllowed)
- {
- possibleSKEYs = new byte[torrents.Count][];
-
- for (int i = 0; i < torrents.Count; i++)
- {
- possibleSKEYs[i] = torrents[i].Torrent.InfoHash;
- }
-
- gotVerificationCallback = new AsyncCallback(gotVerification);
- gotPadCCallback = new AsyncCallback(gotPadC);
- gotInitialPayloadCallback = new AsyncCallback(gotInitialPayload);
- }
-
public PeerBEncryption(byte[][] possibleSKEYs, EncryptionType
minCryptoAllowed)
: base(minCryptoAllowed)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches