Compare commits
1 Commits
0.0.7
...
0c934a748f
| Author | SHA1 | Date | |
|---|---|---|---|
| 0c934a748f |
@@ -41,7 +41,11 @@ class NatsManager {
|
|||||||
|
|
||||||
// Handle connection close events
|
// Handle connection close events
|
||||||
this.nc.closed().then((err) => {
|
this.nc.closed().then((err) => {
|
||||||
|
if (err) {
|
||||||
log("ERROR", `NATS: Connection closed: ${err}`);
|
log("ERROR", `NATS: Connection closed: ${err}`);
|
||||||
|
} else {
|
||||||
|
log("INFO", "NATS: Connection ended")
|
||||||
|
}
|
||||||
this.nc = null;
|
this.nc = null;
|
||||||
this.js = null;
|
this.js = null;
|
||||||
this.kv = null;
|
this.kv = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user