fix bug when connect fail
Merge branch 'master' of https://github.com/maresc-g/rtype