If close was called while reconnecting, an exception could be thrown. This was breaking backward compatibility. Gracefully close the client if StanConnection.Close() is called while reconnecting.
Also remove the check for buffering in assigning NatsConn for backward compatibility as well.
If close was called while reconnecting, an exception could be thrown. This was breaking backward compatibility. Gracefully close the client if
StanConnection.Close()
is called while reconnecting.Also remove the check for buffering in assigning NatsConn for backward compatibility as well.