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 (1 847 stars) (202 forks)batch import
bughelp wanted

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