mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Do not disable push on send error
This commit is contained in:
parent
8a693df6e6
commit
73f7b2ba38
@ -198,14 +198,16 @@ handle_info({ssl, Socket, Packet}, State)
|
||||
<<8, Status, CmdID:32>> when Status /= 0 ->
|
||||
case dict:find(CmdID, State#state.cmd_cache) of
|
||||
{ok, {JID, _DeviceID}} ->
|
||||
From = jlib:make_jid("", State#state.host, ""),
|
||||
ejabberd_router:route(
|
||||
From, JID,
|
||||
{xmlelement, "message", [],
|
||||
[{xmlelement, "disable",
|
||||
[{"xmlns", ?NS_P1_PUSH},
|
||||
{"status", integer_to_list(Status)}],
|
||||
[]}]});
|
||||
?ERROR_MSG("PUSH ERROR for ~p: ~p", [JID, Status]),
|
||||
%From = jlib:make_jid("", State#state.host, ""),
|
||||
%ejabberd_router:route(
|
||||
% From, JID,
|
||||
% {xmlelement, "message", [],
|
||||
% [{xmlelement, "disable",
|
||||
% [{"xmlns", ?NS_P1_PUSH},
|
||||
% {"status", integer_to_list(Status)}],
|
||||
% []}]});
|
||||
ok;
|
||||
error ->
|
||||
?ERROR_MSG("Unknown cmd ID ~p~n", [CmdID]),
|
||||
ok
|
||||
|
Loading…
Reference in New Issue
Block a user