Automattic/monk

Manager._state not updated after reconnect

Open

#293 aberto em 7 de fev. de 2020

Ver no GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (202 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (1.847 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador