[refactor] Simplify connection type logic in ThreadOpenConnections
[refactor] Simplify connection type logic in ThreadOpenConnections

Consolidate the logic to determine connection type into one conditional to
clarify how they are chosen.


Former-commit-id: 464a95b4de744c88ba13a42bf44f621923c0435d
syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin,syscoin/syscoin