Typo + tested loop waiting for socket worked