mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Ignore late arrival of an already cancelled timer
This commit is contained in:
parent
e8eb6bc2b4
commit
0545e0a797
@ -257,6 +257,12 @@ c2s_handle_info(#{jid := JID} = State, {_Ref, {resume, OldState}}) ->
|
|||||||
[jid:encode(JID)]),
|
[jid:encode(JID)]),
|
||||||
route_unacked_stanzas(OldState#{mgmt_resend => false}),
|
route_unacked_stanzas(OldState#{mgmt_resend => false}),
|
||||||
{stop, State};
|
{stop, State};
|
||||||
|
c2s_handle_info(State, {timeout, _, Timeout}) when Timeout == ack_timeout;
|
||||||
|
Timeout == pending_timeout ->
|
||||||
|
%% Late arrival of an already cancelled timer: we just ignore it.
|
||||||
|
%% This might happen because misc:cancel_timer/1 doesn't guarantee
|
||||||
|
%% timer cancelation in the case when p1_server is used.
|
||||||
|
{stop, State};
|
||||||
c2s_handle_info(State, _) ->
|
c2s_handle_info(State, _) ->
|
||||||
State.
|
State.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user