[Spice-devel] [PATCH spice-gtk 05/11] Warn with the connect connect socket error

Marc-André Lureau marcandre.lureau at gmail.com
Thu Dec 8 06:12:52 PST 2011


---
 gtk/spice-session.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index 4405fd2..2b10635 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -1317,6 +1317,8 @@ GSocket* spice_session_channel_open_host(SpiceSession *session, gboolean use_tls
         SPICE_DEBUG("Trying one socket");
         g_clear_error(&conn_error);
         sock = channel_connect_socket(sockaddr, &conn_error);
+        if (conn_error != NULL)
+            g_warning(conn_error->message);
         g_object_unref(sockaddr);
     }
     g_object_unref(enumerator);
-- 
1.7.7.3



More information about the Spice-devel mailing list