{"action":"created","issue":{"url":"https://api.github.com/repos/mhart/dynalite/issues/30","labels_url":"https://api.github.com/repos/mhart/dynalite/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/mhart/dynalite/issues/30/comments","events_url":"https://api.github.com/repos/mhart/dynalite/issues/30/events","html_url":"https://github.com/mhart/dynalite/issues/30","id":71745201,"number":30,"title":".close() doesn't seem to close levelup","user":{"login":"mrjackdavis","id":1670700,"avatar_url":"https://avatars.githubusercontent.com/u/1670700?v=3","gravatar_id":"","url":"https://api.github.com/users/mrjackdavis","html_url":"https://github.com/mrjackdavis","followers_url":"https://api.github.com/users/mrjackdavis/followers","following_url":"https://api.github.com/users/mrjackdavis/following{/other_user}","gists_url":"https://api.github.com/users/mrjackdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjackdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjackdavis/subscriptions","organizations_url":"https://api.github.com/users/mrjackdavis/orgs","repos_url":"https://api.github.com/users/mrjackdavis/repos","events_url":"https://api.github.com/users/mrjackdavis/events{/privacy}","received_events_url":"https://api.github.com/users/mrjackdavis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T00:32:30Z","updated_at":"2015-04-29T03:24:44Z","closed_at":"2015-04-29T03:24:29Z","body":"I'm experiencing some unexpected behaviour. I expect that when I call `.close()` on a dynalite server, the underlying Levelup database is closed. However, it seems that is not the case.\r\n\r\nHere's an example:\r\n\r\n    var dynalite = require('dynalite');\r\n\r\n    var server = dynalite({path: './tmp/dynalite', createTableMs: 50});\r\n\r\n    server.listen(4567,function(err){\r\n      if(!err){\r\n        // doThings();\r\n\r\n        server.close(function(){\r\n          // Expect server to be closed...\r\n          var server2 = dynalite({path: './tmp/dynalite', createTableMs: 50});\r\n          server2.listen(6789,function(err){\r\n            // recieved an error \"Uncaught OpenError: IO error: lock ./tmp/mockDynamo/LOCK: already held by process\"\r\n          });\r\n        });\r\n      }\r\n    });"},"comment":{"url":"https://api.github.com/repos/mhart/dynalite/issues/comments/97293198","html_url":"https://github.com/mhart/dynalite/issues/30#issuecomment-97293198","issue_url":"https://api.github.com/repos/mhart/dynalite/issues/30","id":97293198,"user":{"login":"mhart","id":367936,"avatar_url":"https://avatars.githubusercontent.com/u/367936?v=3","gravatar_id":"","url":"https://api.github.com/users/mhart","html_url":"https://github.com/mhart","followers_url":"https://api.github.com/users/mhart/followers","following_url":"https://api.github.com/users/mhart/following{/other_user}","gists_url":"https://api.github.com/users/mhart/gists{/gist_id}","starred_url":"https://api.github.com/users/mhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhart/subscriptions","organizations_url":"https://api.github.com/users/mhart/orgs","repos_url":"https://api.github.com/users/mhart/repos","events_url":"https://api.github.com/users/mhart/events{/privacy}","received_events_url":"https://api.github.com/users/mhart/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T03:24:44Z","updated_at":"2015-04-29T03:24:44Z","body":"Thanks so much for reporting! Fixed in v0.11.2"}}