diff --git a/src/utils/stomp.ts b/src/utils/stomp.ts index 8bfbdc0..af5a390 100644 --- a/src/utils/stomp.ts +++ b/src/utils/stomp.ts @@ -30,7 +30,7 @@ export default class StompForExchange { triedFailedTimes: this.triedFailedTimes, }, }) - throw new Error('connecting') + return } if (this.isTriedMaxTimes()) { @@ -41,7 +41,7 @@ export default class StompForExchange { triedFailedTimes: this.triedFailedTimes, }, }) - throw new Error(`tried ${this.triedFailedTimes} times still can not connect`) + return } this.connecting = true