Fixed crash due to unhandled if-statement case

Trying to connect to a server too quickly caused a crash due to an
unhandled case from an if-else statement