fixes for previous commit
[enigma2.git] / lib / base / ebase.h
index 27e4ec843f253f03de3ea9729831649fcbecae47..bab1b5f372aa71a0771595590853763a69cba646 100644 (file)
@@ -217,11 +217,14 @@ public:
                existing_loops.push_back(this);
                pthread_mutex_init(&recalcLock, 0);
        }
-       ~eMainloop()
+       virtual ~eMainloop()
        {
                existing_loops.remove(this);
                pthread_mutex_destroy(&recalcLock);
+               for (std::map<int, eSocketNotifier*>::iterator it(notifiers.begin());it != notifiers.end();++it)
+                       it->second->stop();
        }
+
        int looplevel() { return loop_level; }
 
 #ifndef SWIG