Commit aca13bd521d14b347383cfa1f8a098cf71a71412
Close ssb clients
cel committed on 11/22/2016, 4:44:16 AMParent: 34b07459e5b69b2cfc44f79d97b19f3432c6191d
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -16,8 +16,9 @@ | ||
16 | 16 … | avatar(sbot, me, me, function (err, avatar){ |
17 | 17 … | if (err) throw err |
18 | 18 … | name = avatar.name |
19 | 19 … | image = avatar.image |
20 … | + sbot.close() | |
20 | 21 … | }) |
21 | 22 … | }) |
22 | 23 … | |
23 | 24 … | http.createServer(function (req, res){ |
@@ -27,8 +28,9 @@ | ||
27 | 28 … | sbot.query.read({query: [{$filter: { value: { author: me, content: {type: 'post'}}}}], limit: 1, reverse: true}), |
28 | 29 … | pull.drain(function (data) { |
29 | 30 … | post = data |
30 | 31 … | gotPost() |
32 … | + sbot.close() | |
31 | 33 … | }) |
32 | 34 … | ) |
33 | 35 … | }) |
34 | 36 … | function gotPost() { |
Built with git-ssb-web