Cranking manual refresh polling when disconnected from pubsub.

This commit is contained in:
Samuel Clay 2012-03-28 19:16:18 -07:00
parent a2e792a3ed
commit eeb783ab8e

View file

@ -5304,9 +5304,8 @@
if (feed_count > 500) {
refresh_interval *= 1.5;
}
if (this.flags.feed_refreshing_in_realtime) {
if (this.flags['feed_refreshing_in_realtime'] && !this.flags['has_unfetched_feeds']) {
if (this.socket && this.socket.socket.connected) {
CHECK FOR ERRORS/IMPORTING. ALTHOUGH IT SHOULD BE HANDLED BY THE FEEDFETCHER
refresh_interval *= 20;
}
}