Automattic/monk

Manager._state not updated after reconnect

开放

#293 创建于 2020年2月7日

 (2 条评论) (0 个反应) (0 位负责人)JavaScript (180 个派生)batch import
bughelp wanted

仓库指标

星标
 (1,827 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南