daleharvey/pouchdb — pull request #839 by toddbluhm (2013-07-11 06:56:06+00:00)
Title: Possible 830 fix.

Fixed an issue when the couchdb update sequence number and changes feed sequence number don't ever match up, and therefore replication continues indefinitely. In the case of that, check to see if the results are empty, and if so, cancel the replication. Could possibly break continuous replication if changes feed is returning empty all the time? All browser tests and nodejs tests passed.