From a62fdb335668adb4bab4acaff551b0e1f605a2f4 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 16 Oct 2016 03:51:43 -0700 Subject: [PATCH] http: stop resend from hanging. --- lib/http/server.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/http/server.js b/lib/http/server.js index bf93bfc8..d295eeae 100644 --- a/lib/http/server.js +++ b/lib/http/server.js @@ -701,6 +701,7 @@ HTTPServer.prototype._init = function _init() { // Resend this.post('/resend', con(function* (req, res, send, next) { yield this.walletdb.resend(); + send(200, { success: true }); })); // Zap @@ -1073,6 +1074,7 @@ HTTPServer.prototype._init = function _init() { // Resend this.post('/wallet/:id/resend', con(function* (req, res, send, next) { yield req.wallet.resend(); + send(200, { success: true }); })); this.server.on('error', function(err) {