diff --git a/src/util/createSessionUtil.ts b/src/util/createSessionUtil.ts index dd5be5dc4e..33cf94413b 100644 --- a/src/util/createSessionUtil.ts +++ b/src/util/createSessionUtil.ts @@ -144,9 +144,9 @@ export default class CreateSessionUtil { } } catch (e) { req.logger.error(e); - if (e instanceof Error && e.name == "TimeoutError") { - let client = this.getClient(session) as any; - client.status = 'CLOSED' + if (e instanceof Error && e.name == 'TimeoutError') { + const client = this.getClient(session) as any; + client.status = 'CLOSED'; } } }