--- a/src/internfile/mh_exec.cpp
+++ b/src/internfile/mh_exec.cpp
@@ -42,8 +42,9 @@
public:
MEAdv(int maxsecs) : m_filtermaxseconds(maxsecs) {m_start = time(0L);}
void newData(int n) {
- LOGDEB1(("MHExec: new data, count %d\n", n));
- if (time(0L) - m_start > m_filtermaxseconds) {
+ LOGDEB1(("MHExec:newData(%d)\n", n));
+ if (m_filtermaxseconds > 0 &&
+ time(0L) - m_start > m_filtermaxseconds) {
LOGERR(("MimeHandlerExec: filter timeout (%d S)\n",
m_filtermaxseconds));
CancelCheck::instance().setCancel();