rtsp: clear the GError for pending connect
Clear the GError after g_socket_connect tells us that the connection is pending. If we don't do this, glib complains when we try to reuse the non-NULL GError variable a little below.
This commit is contained in:
parent
892cefe651
commit
2cd15bbef8
@ -426,6 +426,7 @@ do_connect (const gchar * ip, guint16 port, GSocket ** socket_out,
|
||||
if (!g_socket_connect (socket, saddr, cancellable, &err)) {
|
||||
if (!g_error_matches (err, G_IO_ERROR, G_IO_ERROR_PENDING))
|
||||
goto sys_error;
|
||||
g_clear_error (&err);
|
||||
} else {
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user