Ignore:
Timestamp:
Aug 3, 2009, 5:37:10 PM (15 years ago)
Author:
Christoph Mayer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp

    r5610 r5632  
    6666BluetoothSdp::BluetoothSdp(BootstrapInformationCallback* _callback) :
    6767        BootstrapModule(_callback), scan_timer_(io_service_) {
    68         srand( time(NULL) );
     68        srand( time(NULL) ), found(false);
    6969#ifdef HAVE_BLUETOOTH_BLUETOOTH_H
    7070
     
    296296        close(sock);
    297297
    298         int nextscan = (rand() % 30) + 5;
    299         logging_debug("next sdp scan in " << nextscan << " seconds");
     298        if(!found){
     299                int nextscan = (rand() % 30) + 5;
     300                logging_debug("next sdp scan in " << nextscan << " seconds");
     301        }
    300302
    301303        scan_timer_.expires_from_now( boost::posix_time::seconds(nextscan) );
     
    368370
    369371                                // Callback
     372                                found = true;
    370373                                callback->onBootstrapServiceFound(name, info1, info2, info3);
    371374                        }
Note: See TracChangeset for help on using the changeset viewer.