Skip to content

Commit

Permalink
fix: that mmsk would crash when websocket reconnect exceed 100 times …
Browse files Browse the repository at this point in the history
…or websocket just try connecting
  • Loading branch information
Xaber20110202 committed Jul 31, 2019
1 parent 8a0c88d commit 6be8f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/stomp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default class StompForExchange {
triedFailedTimes: this.triedFailedTimes,
},
})
throw new Error('connecting')
return
}

if (this.isTriedMaxTimes()) {
Expand All @@ -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
Expand Down

0 comments on commit 6be8f01

Please sign in to comment.