     return if !currentFeedSvc.get() && !currentFolderSvc.get()
     # If a 404 has been received in a previous page (no more entries available), do nothing
     return if !entriesPaginationSvc.more_entries_available()
+
+    # Cancel any running http request for entries
+    $rootScope.entries_http_canceler.resolve() if $rootScope.entries_http_canceler?
 
     # Reset the timer that updates feeds every minute
     feedsFoldersSvc.reset_refresh_timer()

      if current_feed && entriesPaginationSvc.is_first_page()
        current_feed.unread_entries = data["unread_entries"]
    .error (data,status)->
      entriesPaginationSvc.set_busy false
      if status == 404
        # there are no more entries to retrieve

########################################################

angular.module('feedbunch').service 'readSvc',
['$rootScope', '$http', '$window', '$q', 'currentFeedSvc', 'currentFolderSvc', 'timerFlagSvc', 'openFolderSvc',
 'entriesPaginationSvc', 'openEntrySvc', 'feedsFoldersSvc',
($rootScope, $http, $window, $q, currentFeedSvc, currentFolderSvc, timerFlagSvc, openFolderSvc,
 entriesPaginationSvc, openEntrySvc, feedsFoldersSvc)->

  #--------------------------------------------
