neopg 2.2.5 → 2.2.6

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neopg",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "orm for postgres",
5
5
  "keywords": [
6
6
  "neopg",
@@ -350,7 +350,7 @@ function Connection(options, queues = {}, { onopen = noop, onend = noop, onclose
350
350
  }
351
351
 
352
352
  function reconnect() {
353
- setTimeout(connect, closedDate ? closedDate + delay - performance.now() : 0)
353
+ setTimeout(connect, closedDate ? Math.max(0, closedDate + delay - performance.now()) : 0)
354
354
  }
355
355
 
356
356
  function connected() {