couchbaselabs / CouchCocoa

Objective-C API for CouchDB on iOS and Mac OS
http://couchbaselabs.github.com/CouchCocoa/docs/
218 stars 66 forks source link

Active Tasks observers are not removed when pollActivity fails #72

Open airpaulg opened 11 years ago

airpaulg commented 11 years ago

Hello,

In checkActiveTasks in CouchServer.m, the polling is stopped when an operation fails. Nevertheless, I was wondering how I was supposed to detect that I need to remove the observers from active tasks. Also, I'd like to detect the operation failure so that I can restart my one-shot pull replication. Nothing in the Replication KVO is triggered when the said operation fails.