no timeout if filtermaxseconds is -1
This commit is contained in:
parent
1d49117bcd
commit
943ff83bce
@ -42,8 +42,9 @@ class MEAdv : public ExecCmdAdvise {
|
||||
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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user