changeset 1452:d43075afd1db

nerge
author Cristi Magherusan <majeru@atheme-project.org>
date Fri, 10 Aug 2007 14:23:07 +0300
parents 31a21423999f
children 572db023e7a6
files src/daap/daap.c
diffstat 1 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/daap/daap.c	Wed Aug 08 22:08:39 2007 +0300
+++ b/src/daap/daap.c	Fri Aug 10 14:23:07 2007 +0300
@@ -62,6 +62,11 @@
     daap_found_devices  = daap_mdns_get_server_list ();
     current_server=daap_found_devices;
     g_print ("entering for\n");
+    if(current_server!=NULL)
+        g_print("!=NULL\n");
+    else 
+        g_print("==NULL\n");
+        
     for (; current_server; current_server = g_slist_next (current_server)) 
     {
      g_print ("in for\n");
@@ -110,19 +115,26 @@
     {
         if( !daap_mdns_initialize ())
         {
-#ifdef DEBUG    /*this isn't a fatal error, we can try again later*/
+#if 1    /*this isn't a fatal error, we can try again later*/
             g_print("Error while initializing DAAP !!!\n");
 #endif          
             g_mutex_unlock(mutex_init);
             return NULL;
         }
         else
+        {
+#if 1   
+            g_print("DAAP was initialized succesfully\n");
+#endif  
             daap_initialized=TRUE;
-
+        }
     
     if(daap_initialized)
+    {
+        sleep(1);
         daap_discovery_get_devices_impl();
     }
+    }
     g_mutex_unlock(mutex_init);  /*init ended*/
 
     file = g_new0(VFSFile, 1);