|
a/libupnpp/discovery.cxx |
|
b/libupnpp/discovery.cxx |
|
... |
|
... |
311 |
}
|
311 |
}
|
312 |
|
312 |
|
313 |
time_t UPnPDeviceDirectory::getRemainingDelay()
|
313 |
time_t UPnPDeviceDirectory::getRemainingDelay()
|
314 |
{
|
314 |
{
|
315 |
time_t now = time(0);
|
315 |
time_t now = time(0);
|
316 |
if (now - m_lastSearch >= m_searchTimeout+1)
|
316 |
if (now - m_lastSearch >= m_searchTimeout)
|
317 |
return 0;
|
317 |
return 0;
|
318 |
return m_searchTimeout - (now - m_lastSearch);
|
318 |
return m_searchTimeout - (now - m_lastSearch);
|
319 |
}
|
319 |
}
|
320 |
|
320 |
|
321 |
bool UPnPDeviceDirectory::traverse(UPnPDeviceDirectory::Visitor visit)
|
321 |
bool UPnPDeviceDirectory::traverse(UPnPDeviceDirectory::Visitor visit)
|