clear timeout when getting service status

This commit is contained in:
Girish Ramakrishnan
2021-02-16 11:13:33 -08:00
parent af54142997
commit 41ec22e8c3

View File

@@ -27,6 +27,8 @@ function getAll(req, res, next) {
function get(req, res, next) {
assert.strictEqual(typeof req.params.service, 'string');
req.clearTimeout();
services.getServiceStatus(req.params.service, function (error, result) {
if (error) return next(BoxError.toHttpError(error));