Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
[Service Bus] call _init only if the link is not open (Azure#11175)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshaNalluru authored and sadasant committed Sep 10, 2020
1 parent f770965 commit 1c30b9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/servicebus/service-bus/src/core/managementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,9 @@ export class ManagementClient extends LinkEntity<RequestResponseLink> {
);

try {
await this._init(sendRequestOptions?.abortSignal);
if (!this.isOpen()) {
await this._init(sendRequestOptions?.abortSignal);
}
} finally {
clearTimeout(waitTimer);
}
Expand Down

0 comments on commit 1c30b9c

Please sign in to comment.