in the dock badger, check for membership first when removing a torrent

This commit is contained in:
Mitchell Livingston 2011-06-19 03:59:04 +00:00
parent 4d5ab8a4c5
commit 5124d87a5b
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@
- (void) removeTorrent: (Torrent *) torrent
{
if ([fHashes count] > 0)
if ([fHashes member: [torrent hashString]])
{
[fHashes removeObject: [torrent hashString]];
if ([fHashes count] > 0)