clear timeout when getting service status
This commit is contained in:
@@ -27,6 +27,8 @@ function getAll(req, res, next) {
|
|||||||
function get(req, res, next) {
|
function get(req, res, next) {
|
||||||
assert.strictEqual(typeof req.params.service, 'string');
|
assert.strictEqual(typeof req.params.service, 'string');
|
||||||
|
|
||||||
|
req.clearTimeout();
|
||||||
|
|
||||||
services.getServiceStatus(req.params.service, function (error, result) {
|
services.getServiceStatus(req.params.service, function (error, result) {
|
||||||
if (error) return next(BoxError.toHttpError(error));
|
if (error) return next(BoxError.toHttpError(error));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user