Removes notification of new channels

This is going to be moved to the stateful Feed, this is yet to be
implemented.
This commit is contained in:
Harm Aarts 2013-12-05 14:10:22 +01:00
parent 73442f806a
commit d75037c0ab
1 changed files with 0 additions and 6 deletions

View File

@ -150,16 +150,10 @@ func (this *Feed) makeFeed(doc *xmlx.Document) (err error) {
return
}
chancount := len(this.Channels)
if err = this.buildFeed(doc); err != nil || len(this.Channels) == 0 {
return
}
// Notify host of new channels
if chancount != len(this.Channels) && this.chanhandler != nil {
this.chanhandler(this, this.Channels[chancount:])
}
// reset cache timeout values according to feed specified values (TTL)
if this.EnforceCacheLimit && this.CacheTimeout < this.Channels[0].TTL {
this.CacheTimeout = this.Channels[0].TTL