Automattic/monk

Manager._state not updated after reconnect

Open

#293 opened on 2020年2月7日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)JavaScript (202 forks)batch import
bughelp wanted

Repository metrics

Stars
 (1,847 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド