python object refcount debugging code second try
[vuplus_dvbapp] / lib / dvb / scan.cpp
index 70c3e6b..8b895dc 100644 (file)
@@ -305,6 +305,12 @@ void eDVBScan::addChannelToScan(const eDVBChannelID &chid, iDVBFrontendParameter
                ++i;
        }
 
+       if (found_count > 0)
+       {
+               eDebug("already in todo list");
+               return;
+       }
+
                /* ... in the list of successfully scanned channels */
        for (std::list<ePtr<iDVBFrontendParameters> >::const_iterator i(m_ch_scanned.begin()); i != m_ch_scanned.end(); ++i)
                if (sameChannel(*i, feparm))