diff --git a/src/db/dbChannelIO.cpp b/src/db/dbChannelIO.cpp index 431daaf2b..205b1a77a 100644 --- a/src/db/dbChannelIO.cpp +++ b/src/db/dbChannelIO.cpp @@ -50,7 +50,7 @@ dbChannelIO::~dbChannelIO () * remove any subscriptions attached to this channel */ tsDLIterBD iter = this->eventq.first (); - while ( iter != iter.eol () ) { + while ( iter.valid () ) { tsDLIterBD next = iter.itemAfter (); iter->destroy (); iter = next;