mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix R12B5 compatibility in ejabberd_http_bind.erl (EJAB-1343)
erlang:max/2 and :min/2 are new functions
This commit is contained in:
parent
aaa69a8c36
commit
690c56ca6d
@ -288,9 +288,7 @@ handle_session_start(Pid, XmppDomain, Sid, Rid, Attrs,
|
|||||||
(CPdelay =< ?PROCESS_DELAY_MAX) ->
|
(CPdelay =< ?PROCESS_DELAY_MAX) ->
|
||||||
CPdelay;
|
CPdelay;
|
||||||
{CPdelay, _} ->
|
{CPdelay, _} ->
|
||||||
erlang:max(
|
lists:max([lists:min([CPdelay, ?PROCESS_DELAY_MAX]), ?PROCESS_DELAY_MIN])
|
||||||
erlang:min(CPdelay,?PROCESS_DELAY_MAX),
|
|
||||||
?PROCESS_DELAY_MIN)
|
|
||||||
end,
|
end,
|
||||||
Version =
|
Version =
|
||||||
case catch list_to_float(
|
case catch list_to_float(
|
||||||
|
Loading…
Reference in New Issue
Block a user