adjustments
This commit is contained in:
@@ -11,10 +11,7 @@ func (ls *LibraryState) Eq(a LibraryState) bool {
|
||||
if ls.TotalCount == 0 || ls.FirstActiveTorrentId == "" || ls.FirstTorrentId == "" {
|
||||
return false
|
||||
}
|
||||
if a.TotalCount != ls.TotalCount || a.ActiveCount != ls.ActiveCount || a.FirstActiveTorrentId != ls.FirstActiveTorrentId || a.FirstTorrentId != ls.FirstTorrentId {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return a.TotalCount == ls.TotalCount && a.ActiveCount == ls.ActiveCount && a.FirstActiveTorrentId == ls.FirstActiveTorrentId && a.FirstTorrentId == ls.FirstTorrentId
|
||||
}
|
||||
|
||||
func (t *TorrentManager) setNewLatestState(checksum LibraryState) {
|
||||
|
||||
Reference in New Issue
Block a user