Automattic/monk

Manager._state not updated after reconnect

Open

#293 aperta il 7 feb 2020

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (202 fork)batch import
bughelp wanted

Metriche repository

Star
 (1847 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor