Fixed an annoying socket glitch, now the connection should work better in poor wifi conditions