Skip to content

Commit

Permalink
Fixed NATSManager start method
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkonst committed Oct 17, 2024
1 parent bc827db commit 2b1f3b6
Show file tree
Hide file tree
Showing 3 changed files with 8 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.23.1",
"version": "7.23.2",
"description": "JavaScript API clients for ULMS platform",
"keywords": [],
"homepage": "https://github.com/foxford/ulms-api-clients-js#readme",
Expand Down
5 changes: 5 additions & 0 deletions src/nats-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ class NatsManager {
}

async start(classId, name, accountLabel) {
if (this.id) {
// has previous connection, close it
await this.stop()
}

const rid = generateRandomId()

this.id = rid
Expand Down

0 comments on commit 2b1f3b6

Please sign in to comment.