If there is an error while connecting, the streaming task will be stopped, and is_running() will be false, causing a GST_FLOW_FLUSHING to be returned. Instead, we perform the error check (!self->connection) first, to return an error if that's what occured. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3189>