So you're doing this in the above statement:

	sock.get_once || ''

That means the result variable will never be nil, which means the first condition is always true anyway :-)