mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 14:28:34 +00:00
Unsigned values are never less than zero
This commit is contained in:
1 parent
f07181e266
commit
a82878f786
1 file changed
+1
-6
@@ -603,12 +603,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_json_cdr_load)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (globals.retries < 0) {
|
if (globals.retries && globals.delay) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries is negative, setting to 0\n");
|
|
||||||
globals.retries = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (globals.retries && globals.delay <= 0) {
|
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries set but delay 0 setting to 5000ms\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Retries set but delay 0 setting to 5000ms\n");
|
||||||
globals.delay = 5000;
|
globals.delay = 5000;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user