cgserver 12.2.0 → 12.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -150,9 +150,6 @@ class MongoExt {
150
150
  if (this._inited) {
151
151
  return false;
152
152
  }
153
- if (this._mongoDb) {
154
- return true;
155
- }
156
153
  this._mongocfg = cfg;
157
154
  this._inited = true;
158
155
  Log_1.gLog.info("mongo config=" + JSON.stringify(this._mongocfg));
@@ -178,6 +175,7 @@ class MongoExt {
178
175
  onConnectionClosed(event) {
179
176
  Log_1.gLog.info({ key: "mongo onConnectionClosed", event });
180
177
  this._inited = false;
178
+ this._mongoDb = null;
181
179
  this.init(this._mongocfg);
182
180
  }
183
181
  close(force = false) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "12.2.0",
3
+ "version": "12.2.1",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",