Automattic/monk

Manager._state not updated after reconnect

Open

#293 ouverte le 7 févr. 2020

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)JavaScript (202 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (1 847 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

When following events are emitted:

  • open
  • close
  • reconnect The connection _state parameter is still STATE.CLOSED from the close event.

This because when a reconnect event is emitted by the MongoClient, the Manager _state parameter isn't updated to STATE.OPEN.

Guide contributeur