Skip to content

Commit

Permalink
[core] Fix webseed support
Browse files Browse the repository at this point in the history
This clearly needs better tests, or even any tests at all :p

Improving the integration tests to validate this works end-to-end
would be a step up from just the unit tests.
  • Loading branch information
alanmcgovern committed Nov 24, 2020
1 parent af22dfa commit 3a55855
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MonoTorrent/MonoTorrent.Client/Modes/Mode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -623,11 +623,15 @@ void DownloadLogic (int counter)
id.Encryptor = PlainTextEncryption.Instance;
id.Decryptor = PlainTextEncryption.Instance;
id.IsChoking = false;
id.AmInterested = !Manager.Complete;
id.ClientApp = new Software (id.PeerID);
Manager.Peers.ConnectedPeers.Add (id);
Manager.RaisePeerConnected (new PeerConnectedEventArgs (Manager, id));
ConnectionManager.ReceiveMessagesAsync (id.Connection, id.Decryptor, Manager.DownloadLimiters, id.Monitor, Manager, id);
if (!Manager.Complete) {
id.ProcessingQueue = true;
SetAmInterestedStatus (id, true);
ConnectionManager.ProcessQueue (Manager, id);
}
}

// FIXME: In future, don't clear out this list. It may be useful to keep the list of HTTP seeds
Expand Down

0 comments on commit 3a55855

Please sign in to comment.