couchbase/couchbase-lite-ios — pull request #428 by pasin (2014-08-22 22:11:45+00:00)
Title: Fix #418 deleteDatabase: blocking thread

* CBL_Shared's forgetDatabaseNamed: blocks CBLDatabase objects from closing when they receive DatabaseWillBeDeleted notification. Instead of doing sleep, calling runloop to spin to allow the other CBLDatabase objects to get closed.

* When closing CBLManager, closing all databases in the CBL_Shared object as well.