fix socket error when overtyping; bug was introduced by --live-replay

the guard against sock.recv(1024) is a bit of a superstitious fix
in the sense that I don't understand well what's going on here;
the patch just mitigates the symptoms.