Automattic/monk

Manager._state not updated after reconnect

Aperta

#293 aperta il 7 feb 2020

 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (180 fork)batch import
bughelp wanted

Metriche repository

Star
 (1828 stelle)
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