Skip to content

Commit

Permalink
Merge pull request #5 from consenlabs/fix-mmsk-crash
Browse files Browse the repository at this point in the history
fix mmsk crash in some situation
  • Loading branch information
Xaber20110202 authored Jul 31, 2019
2 parents 8a0c88d + 6be8f01 commit a26e6dd
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 a26e6dd

Please sign in to comment.