http: stop resend from hanging.
This commit is contained in:
parent
b666b89a4c
commit
a62fdb3356
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user