Open dnxbf321 opened 8 years ago
Thanks for reporting. Any idea why it happens?
I think I'm running into the same problem. I'm not sure yet what it could be. I'll post back if I notice.
I know that
let connection = MongoClient.connect(urls.join(','), options).then(function (db) {
if (!self.db) {
self.db = db;
}
return db;
});
when call disconnect,but self.db is exsits, but old db is destory! If you want fix this question ,you should change this design , when you fix it . notify thx
I faced with this problem too. I agree with @hcjrabbit and I guess the same thing is happened with this._connection
.
let connection = MongoClient.connect(urls.join(','), options).then(function (db) {
if (!self.db) {
db.url = urls.join(',');
self.db = db;
}
return db;
});
if (!this._connection) {
this._connection = connection;
}
V3 is out soon, hope it will fix the issue.