Skip to content

Commit 1fe31eb

Browse files
fix: correct variable name for consistency
1 parent ce7c0d4 commit 1fe31eb

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/client.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = function (dependencies) {
3636
function Client(options) {
3737
this.isDestroyed = false;
3838
this.isSessionReady = false;
39-
this.isManageChannelSessionReady = false;
39+
this.isManageChannelsSessionReady = false;
4040
this.config = config(options);
4141
this.logger = defaultLogger;
4242
this.errorLogger = defaultErrorLogger;
@@ -193,7 +193,7 @@ module.exports = function (dependencies) {
193193
if (path.includes('/1/apps/')) {
194194
// Connect manageChannelsSession.
195195
if (
196-
!this.isManageChannelSessionReady ||
196+
!this.isManageChannelsSessionReady ||
197197
!this.manageChannelsSession ||
198198
this.manageChannelsSession.closed ||
199199
this.manageChannelsSession.destroyed
@@ -466,38 +466,38 @@ module.exports = function (dependencies) {
466466
));
467467

468468
this.manageChannelsSession.on('connect', () => {
469-
this.isManageChannelSessionReady = true;
469+
this.isManageChannelsSessionReady = true;
470470
if (this.logger.enabled) {
471471
this.logger('ManageChannelsSession connected');
472472
}
473473
});
474474

475475
this.manageChannelsSession.on('close', () => {
476-
this.isManageChannelSessionReady = false;
476+
this.isManageChannelsSessionReady = false;
477477
if (this.errorLogger.enabled) {
478478
this.errorLogger('ManageChannelsSession closed');
479479
}
480480
this.destroySession(session);
481481
});
482482

483483
this.manageChannelsSession.on('socketError', error => {
484-
this.isManageChannelSessionReady = false;
484+
this.isManageChannelsSessionReady = false;
485485
if (this.errorLogger.enabled) {
486486
this.errorLogger(`ManageChannelsSession Socket error: ${error}`);
487487
}
488488
this.closeAndDestroySession(session);
489489
});
490490

491491
this.manageChannelsSession.on('error', error => {
492-
this.isManageChannelSessionReady = false;
492+
this.isManageChannelsSessionReady = false;
493493
if (this.errorLogger.enabled) {
494494
this.errorLogger(`ManageChannelsSession error: ${error}`);
495495
}
496496
this.closeAndDestroySession(session);
497497
});
498498

499499
this.manageChannelsSession.on('goaway', (errorCode, lastStreamId, opaqueData) => {
500-
this.isManageChannelSessionReady = false;
500+
this.isManageChannelsSessionReady = false;
501501
if (this.errorLogger.enabled) {
502502
this.errorLogger(
503503
`ManageChannelsSession GOAWAY received: (errorCode ${errorCode}, lastStreamId: ${lastStreamId}, opaqueData: ${opaqueData})`
@@ -507,7 +507,7 @@ module.exports = function (dependencies) {
507507
});
508508

509509
this.manageChannelsSession.on('frameError', (frameType, errorCode, streamId) => {
510-
this.isManageChannelSessionReady = false;
510+
this.isManageChannelsSessionReady = false;
511511
// This is a frame error not associate with any request(stream).
512512
if (this.errorLogger.enabled) {
513513
this.errorLogger(

0 commit comments

Comments
 (0)