Ignore:
Timestamp:
Jul 9, 2009, 4:48:08 PM (15 years ago)
Author:
Christoph Mayer
Message:

avahi fehler logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/bootstrap/modules/multicastdns/MulticastDns.cpp

    r4838 r4841  
    8888                        (AvahiClientFlags)0, MulticastDns::client_callback, this, &error );
    8989        if( avahiclient == NULL){
    90                 logging_error("creating avahi client failed");
     90                logging_error("creating avahi client failed with error "
     91                                << error << ". make sure that the avahi-daemon is running. e.g. by installing avahi-utils);
    9192                return;
    9293        }
     
    138139        //
    139140
    140         avahi_client_free( avahiclient );
     141        if(avahiclient != NULL)
     142                avahi_client_free( avahiclient );
    141143        avahiclient = NULL;
    142144
    143         avahi_threaded_poll_free( avahipoll );
     145        if(avahipoll != NULL)
     146                avahi_threaded_poll_free( avahipoll );
    144147        avahipoll = NULL;
    145148
     
    156159        }
    157160
     161        if( avahiclient == NULL ){
     162                logging_error("avahi client is invalid");
     163                return;
     164        }
    158165
    159166        avahi_threaded_poll_lock(avahipoll);
    160         assert( avahiclient != NULL );
    161 
    162167        int ret = 0;
    163168
Note: See TracChangeset for help on using the changeset viewer.