Skip to content

Commit

Permalink
Reconnect on connect, set state (#854)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf authored Jan 16, 2024
1 parent 3e69680 commit 53e876a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/NATS.Client/Connection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,7 @@ internal void connect(bool reconnectOnConnect)
{
if (reconnectOnConnect)
{
status = ConnState.DISCONNECTED; // comes in as CLOSED, but reconnect doesn't work when closed
doReconnect();
}
else
Expand Down

0 comments on commit 53e876a

Please sign in to comment.