State;
c2s_stanza(#{push_enabled := true, mgmt_state := pending} = State,
_Pkt, _SendResult) ->
+ ?DEBUG("Notifying client of stanza", []),
notify(State),
State;
c2s_stanza(State, _Pkt, _SendResult) ->
c2s_session_pending(#{push_enabled := true, mgmt_queue := Queue} = State) ->
case p1_queue:len(Queue) of
Len when Len > 0 ->
- ?DEBUG("Notifying client of unacknowledged messages", []),
+ ?DEBUG("Notifying client of unacknowledged stanza(s)", []),
notify(State),
State;
0 ->