http: stop resend from hanging.

This commit is contained in:
Christopher Jeffrey 2016-10-16 03:51:43 -07:00
parent b666b89a4c
commit a62fdb3356
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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) {