Fix 'NoneType' object has no attribute 'recv' at data = self._sock.recv(left) #2074