不要怂,就是干,撸起袖子干!

Commit 7f6c723c by Jan Aagaard Meier

Merge pull request #900 from xming/master

Fix (global) db leakage, by making db local.
2 parents 6815eb51 9cbe1fd0
Showing with 1 additions and 0 deletions
......@@ -18,6 +18,7 @@ module.exports = (function() {
ConnectorManager.prototype.connect = function() {
var emitter = new (require('events').EventEmitter)()
, self = this
, db
this.database = db = new sqlite3.Database(self.sequelize.options.storage || ':memory:', function(err) {
if (err) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!