// Anything left will be orphaned, but that shouldn't happen too often.
time_t now = time(nullptr);
while (!m_feedQueue.empty() && now - m_feedQueue.front().second > 120) {
- string fname = m_dir + '/' + m_feedQueue.front().first;
+ string fname = m_dir + '/' + m_feedQueue.front().first + ".json";
remove(fname.c_str());
m_feedQueue.pop();
}
// Clean up any old files.
while (m_feedQueue.size() > 1 && (now - m_feedQueue.front().second > 120)) {
- string fname = m_dir + '/' + m_feedQueue.front().first;
+ string fname = m_dir + '/' + m_feedQueue.front().first + ".json";
remove(fname.c_str());
m_feedQueue.pop();
}