Automattic/monk

Manager._state not updated after reconnect

Open

#293 opened on Feb 7, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)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.

Contributor guide