diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index 52e38d76d..ffbe1fe13 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -288,9 +288,7 @@ handle_session_start(Pid, XmppDomain, Sid, Rid, Attrs, (CPdelay =< ?PROCESS_DELAY_MAX) -> CPdelay; {CPdelay, _} -> - erlang:max( - erlang:min(CPdelay,?PROCESS_DELAY_MAX), - ?PROCESS_DELAY_MIN) + lists:max([lists:min([CPdelay, ?PROCESS_DELAY_MAX]), ?PROCESS_DELAY_MIN]) end, Version = case catch list_to_float(