Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
* Monsoon/Model/Download.cs:
Browse files Browse the repository at this point in the history
* Monsoon/TorrentContextMenu.cs: HashChecking the torrent should mark
  it as active.

svn path=/trunk/monsoon/; revision=136663
  • Loading branch information
alanmcgovern committed Jun 22, 2009
1 parent a7266eb commit 95ec9ab
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Monsoon/ChangeLog
@@ -1,3 +1,9 @@
2009-06-23 Alan McGovern <amcgovern@novell.com>

* Model/Download.cs:
* TorrentContextMenu.cs: HashChecking the torrent should mark
it as active.

2009-06-23 Alan McGovern <amcgovern@novell.com>

* Main.cs:
Expand Down
7 changes: 7 additions & 0 deletions Monsoon/Model/Download.cs
Expand Up @@ -139,6 +139,7 @@ public Download (TorrentManager manager)
break;
case TorrentState.Stopped:
State = State.Stopped;
Active = false;
break;
}
});
Expand All @@ -165,6 +166,12 @@ void HandlePeerMessageTransferred(object sender, PeerMessageEventArgs e)
swarmSpeed.AddDelta (manager.Torrent.PieceLength);
}

public void HashCheck ()
{
Active = true;
manager.HashCheck (false);
}

public void Pause ()
{
manager.Pause ();
Expand Down
2 changes: 1 addition & 1 deletion Monsoon/TorrentContextMenu.cs
Expand Up @@ -168,7 +168,7 @@ private void OnRecheckItemActivated(object sender, EventArgs args)
selectedTorrent.Stop();
}
Console.WriteLine ("Checking");
selectedTorrent.Manager.HashCheck(false);
selectedTorrent.HashCheck();
Console.WriteLine ("called it");
} catch(Exception){
logger.Warn("Unable to force re-hash on " + selectedTorrent.Manager.Torrent.Name);
Expand Down

0 comments on commit 95ec9ab

Please sign in to comment.