Skip to content

Commit

Permalink
ULMS-3378 Added stop condition for NATS manager
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed Oct 10, 2024
1 parent 463e02e commit aca8be4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ulms/api-clients",
"version": "7.21.0",
"version": "7.22.0",
"description": "JavaScript API clients for ULMS platform",
"keywords": [],
"homepage": "https://github.com/foxford/ulms-api-clients-js#readme",
Expand Down
4 changes: 4 additions & 0 deletions src/nats-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ class NatsManager {
// waiting 2 seconds between reconnections
await sleep(2e3)
}

if (this.forcedStop) {
break
}
}
}

Expand Down

0 comments on commit aca8be4

Please sign in to comment.