diff --git a/src/cmap/connection_pool.ts b/src/cmap/connection_pool.ts index 63053c4cb2..276712ea54 100644 --- a/src/cmap/connection_pool.ts +++ b/src/cmap/connection_pool.ts @@ -617,7 +617,7 @@ export class ConnectionPool extends TypedEventEmitter { * * @returns `true` if the connection was destroyed, `false` otherwise. */ - private destroyConnectionIfPerished(connection: Connection) { + private destroyConnectionIfPerished(connection: Connection): boolean { const isStale = this.connectionIsStale(connection); const isIdle = this.connectionIsIdle(connection); if (!isStale && !isIdle && !connection.closed) {