Ticket #4383: 4383.patch
File 4383.patch, 1.7 KB (added by , 16 years ago) |
---|
-
upnptasknotify.cpp
89 89 // .arg( sUSN )); 90 90 91 91 { 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(); 95 97 ++it ) 96 98 { 97 99 if (!*it) … … 135 137 // QSocketDevice *pBroadcast = new QBroadcastSocket( "255.255.255.255", SSDP_PORT ); 136 138 137 139 // ---------------------------------------------------------------------- 138 // Refresh IP Address List in case of changes139 // ----------------------------------------------------------------------140 141 m_addressList = QDeepCopy<QStringList>(UPnp::g_IPAddrList);142 143 // ----------------------------------------------------------------------144 140 // Must send rootdevice Notification for first device. 145 141 // ---------------------------------------------------------------------- 146 142 -
upnptasknotify.h
56 56 int m_nMaxAge; 57 57 58 58 UPnpNotifyNTS m_eNTS; 59 60 QStringList m_addressList;61 59 62 63 60 protected: 64 61 65 62 // Destructor protected to force use of Release Method