http: stop resend from hanging.
This commit is contained in:
parent
b666b89a4c
commit
a62fdb3356
@ -701,6 +701,7 @@ HTTPServer.prototype._init = function _init() {
|
|||||||
// Resend
|
// Resend
|
||||||
this.post('/resend', con(function* (req, res, send, next) {
|
this.post('/resend', con(function* (req, res, send, next) {
|
||||||
yield this.walletdb.resend();
|
yield this.walletdb.resend();
|
||||||
|
send(200, { success: true });
|
||||||
}));
|
}));
|
||||||
|
|
||||||
// Zap
|
// Zap
|
||||||
@ -1073,6 +1074,7 @@ HTTPServer.prototype._init = function _init() {
|
|||||||
// Resend
|
// Resend
|
||||||
this.post('/wallet/:id/resend', con(function* (req, res, send, next) {
|
this.post('/wallet/:id/resend', con(function* (req, res, send, next) {
|
||||||
yield req.wallet.resend();
|
yield req.wallet.resend();
|
||||||
|
send(200, { success: true });
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.server.on('error', function(err) {
|
this.server.on('error', function(err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user