git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9130 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-07-22 14:53:54 +00:00
parent 952f2b7198
commit 5fc385c1c5
1 changed files with 3 additions and 1 deletions

View File

@ -1192,7 +1192,9 @@ SWITCH_STANDARD_APP(tone_detect_session_function)
}
} else {
if ((to = atol(argv[3])) < switch_timestamp(NULL)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "INVALID Timeout!\n");
if (to >= 1) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "INVALID Timeout!\n");
}
to = 0;
}
}