Ticket #4383: 4383.patch

File 4383.patch, 1.7 KB (added by Anduin Withers, 16 years ago)
  • upnptasknotify.cpp

     
    8989//                        .arg( sUSN ));
    9090
    9191    {
    92     QMutexLocker qml(&m_mutex); // for m_addressList
    93     for ( QStringList::Iterator it  = m_addressList.begin();
    94                                 it != m_addressList.end();
     92    QMutexLocker qml(&m_mutex); // for addressList
     93    QStringList addressList = QDeepCopy<QStringList>(UPnp::g_IPAddrList);
     94
     95    for ( QStringList::Iterator it  = addressList.begin();
     96                                it != addressList.end();
    9597                              ++it )
    9698    {
    9799        if (!*it)
     
    135137//    QSocketDevice *pBroadcast = new QBroadcastSocket( "255.255.255.255", SSDP_PORT );
    136138
    137139    // ----------------------------------------------------------------------
    138     // Refresh IP Address List in case of changes
    139     // ----------------------------------------------------------------------
    140 
    141     m_addressList = QDeepCopy<QStringList>(UPnp::g_IPAddrList);
    142 
    143     // ----------------------------------------------------------------------
    144140    // Must send rootdevice Notification for first device.
    145141    // ----------------------------------------------------------------------
    146142
  • upnptasknotify.h

     
    5656        int             m_nMaxAge;   
    5757
    5858        UPnpNotifyNTS   m_eNTS;
    59        
    60         QStringList     m_addressList;
    6159
    62 
    6360    protected:
    6461
    6562        // Destructor protected to force use of Release Method