         console.log 'Error while fetching', err if err
 
       # restart request
-      setTimeout(next, 1000)
+      setTimeout next, 1000
 
 
   fetch: (feeds, callback) =>
-    async.each feeds, @request, callback
+    async.each feeds, (feed, callback) =>
+      request.get feed.url, (err, req, body) =>
+        if err
+          return callback err
 
-
-  request: (feed, callback) =>
-    request.get feed.url, (err, req, body) =>
-      if err
-        return callback err
-
-      @handleFeed feed, body, callback
+        @handleFeed feed, body, callback
+    , callback
 
 
   handleFeed: (feed, feedBody, callback) =>

parseRSSFeed  = require('xml2js').parseString

class FeedReader
  constructor: (@feeds, @feedItemCallback) ->
    @allItems = {}

    async.forever (next) =>

      callback()


module.exports = FeedReader