Fixes bug that attempted other connections after a successful one

If those connections failed the connect would also fail instead of
taking the good connection
1 file changed