nats-io / nats.java

Java client for NATS
Apache License 2.0
563 stars 153 forks source link

Duplicate "reconnect" events #1147

Closed joachimglink closed 3 months ago

joachimglink commented 3 months ago

Observed behavior

Starting with jnats 2.17.7 duplicate "reconnect" events are fired if a consumer reconnects.

Expected behavior

Only one "reconnect" event for the connection should be fired.

Server and client version

jnats 2.17.7

Host environment

No response

Steps to reproduce

In previous versions (I checked 2.17.1 ... 2.17.6), only one such "connection reconnected" event was fired.

We have custom logic based on the reconnect event and we would prefer to be only informed once per reconnect.

scottf commented 3 months ago

@joachimglink I fixed this in #1151

scottf commented 3 months ago

Fixed in #1151