sessionstore
Advanced tools
Comparing version 1.2.15 to 1.2.16
@@ -68,3 +68,9 @@ 'use strict'; | ||
if (!self.isConnected) { | ||
if (!callbacked) { | ||
// Github issue #39 - recover after temp ping error. | ||
if (callbacked) { | ||
// Already callbacked, so only restore isConnected state. | ||
self.isConnected = true; | ||
self.emit('connect'); | ||
} else { | ||
// Not callbacked yet, so perform init logic and handle isConnected state. | ||
self.client.indices.create({ | ||
@@ -71,0 +77,0 @@ index: self.index, |
{ | ||
"author": "adrai", | ||
"name": "sessionstore", | ||
"version": "1.2.15", | ||
"version": "1.2.16", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
### [v1.2.16](https://github.com/adrai/sessionstore/compare/v1.2.15...v1.2.16) | ||
- recover elasticsearch connection after temp ping error [#39](https://github.com/adrai/sessionstore/issues/39) [#40](https://github.com/adrai/sessionstore/pull/40) thanks to [ewjmulder](https://github.com/ewjmulder) | ||
### [v1.2.15](https://github.com/adrai/sessionstore/compare/v1.2.14...v1.2.15) | ||
@@ -2,0 +5,0 @@ - redis, mongodb: call disconnect on ping error |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44269
1109