-
If we don't call check_connect_result on an outbound connection, then is_connected will always return FALSE. That's why we check both conditions to make sure g_socket_is_connected returns the correct result, otherwise we end up closing valid connections
fbd58604