Defensively set c.nc only if the error is nil

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.3.3
    • Affects Version/s: None
    • Component/s: Connections
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When connections are initialized, we should check the error and only set c.nc if error is nil. This is because we check if c.nc is nil to see if the connection has been opened, so we want to make sure we don't consider the connection opened if there was an error when dialing.

            Assignee:
            Divjot Arora (Inactive)
            Reporter:
            Divjot Arora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: