diff --git a/modules/extra/clearbufferonmsg.cpp b/modules/extra/clearbufferonmsg.cpp index d6d55e75..15ab3391 100644 --- a/modules/extra/clearbufferonmsg.cpp +++ b/modules/extra/clearbufferonmsg.cpp @@ -19,6 +19,10 @@ public: vector::const_iterator it; for (it = vChans.begin(); it != vChans.end(); ++it) { + // Skip detached channels, they weren't read yet + if ((*it)->IsDetached()) + continue; + (*it)->ClearBuffer(); // We force KeepBuffer on all channels since this module // doesnt make any sense without