Skip to content

Commit

Permalink
fix: repeated ServiceManager.start() calls now noop
Browse files Browse the repository at this point in the history
OKTA-488411
<<<Jenkins Check-In of Tested SHA: d13b08b for [email protected]>>>
Artifact: okta-auth-js
Files changed count: 3
PR Link: "#1177"
  • Loading branch information
jaredperreault-okta authored and eng-prod-CI-bot-okta committed Apr 12, 2022
1 parent ff3aec7 commit 38f2730
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 6.4.1

### Fixes

[#1177](https://github.com/okta/okta-auth-js/pull/1177) - fixes issue with repeated calls to `oktaAuth.start()`

## 6.4

### Features
Expand Down
2 changes: 1 addition & 1 deletion lib/ServiceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class ServiceManager implements ServiceManagerInterface {

start() {
if (this.started) {
this.stop();
return; // noop if services have already started
}
// only start election if a leader is required
if (this.isLeaderRequired()) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "@okta/okta-auth-js",
"description": "The Okta Auth SDK",
"version": "6.4.0",
"version": "6.4.1",
"homepage": "https://github.com/okta/okta-auth-js",
"license": "Apache-2.0",
"main": "build/cjs/index.js",
Expand Down

0 comments on commit 38f2730

Please sign in to comment.