fix copy-pasta induced bug in retry-to-connect

Change-Id: Ie8278f2657b1bb71660a42d24834cc6918c5099d
Signed-off-by: Alessandro Salvatori <sandr8@gmail.com>