late join works (also when activating garbage collector), added some tests to verify (havent tested for large >500 operations)

This commit is contained in:
Kevin Jahns
2015-10-12 15:17:12 +02:00
parent 9c4074e3e3
commit e32aef4c9f
10 changed files with 178 additions and 83 deletions

View File

@@ -33,13 +33,13 @@ class YConfig {
return this.connector.isSynced
}
disconnect () {
this.connector.disconnect()
return this.connector.disconnect()
}
reconnect () {
this.connector.reconnect()
return this.connector.reconnect()
}
destroy () {
this.connector.disconnect()
this.disconnect()
this.db.destroy()
this.connector = null
this.db = null