[svn r122] Added dependency to the GMythBackendInfo.
1.1 --- a/gmyth/src/gmyth_socket.c Mon Nov 27 22:18:27 2006 +0000
1.2 +++ b/gmyth/src/gmyth_socket.c Mon Nov 27 22:22:31 2006 +0000
1.3 @@ -128,7 +128,7 @@
1.4 static gint
1.5 gmyth_socket_find_match_address_uri( GMythURI* uri, gchar *address ) {
1.6
1.7 - if ( g_ascii_strcasecmp( gmyth_uri_gethost( uri ), address ) == 0 ) {
1.8 + if ( g_ascii_strcasecmp( gmyth_uri_get_host( uri ), address ) == 0 ) {
1.9 //g_printerr( "Found URI: %s !!!\n", rui_uri_getvalue(uri) );
1.10 return 0;
1.11 } else {
1.12 @@ -533,6 +533,13 @@
1.13 }
1.14
1.15 gmyth_socket->sd_io_ch = g_io_channel_unix_new( gmyth_socket->sd );
1.16 +
1.17 + GIOFlags flags = g_io_channel_get_flags (gmyth_socket->sd_io_ch);
1.18 + /* unset the nonblock flag */
1.19 + flags &= ~G_IO_FLAG_NONBLOCK;
1.20 + /* unset the nonblocking stuff for some time, because GNUTLS doesn't like
1.21 + * that */
1.22 + g_io_channel_set_flags (gmyth_socket->sd_io_ch, flags, NULL);
1.23
1.24 ret = ( ret_code == 0 ) ? TRUE : FALSE ;
1.25