78 for i=last_ack+1,new_ack do |
78 for i=last_ack+1,new_ack do |
79 table.remove(outgoing_queue, 1); |
79 table.remove(outgoing_queue, 1); |
80 end |
80 end |
81 stream:debug("Received ack: New ack: "..new_ack.." Last ack: "..last_ack.." Unacked stanzas now: "..#outgoing_queue.." (was "..old_unacked..")"); |
81 stream:debug("Received ack: New ack: "..new_ack.." Last ack: "..last_ack.." Unacked stanzas now: "..#outgoing_queue.." (was "..old_unacked..")"); |
82 last_ack = new_ack; |
82 last_ack = new_ack; |
83 else |
83 elseif new_ack < last_ack then |
84 stream:warn("Received bad ack for "..new_ack.." when last ack was "..last_ack); |
84 stream:warn("Received bad ack for "..new_ack.." when last ack was "..last_ack); |
85 end |
85 end |
86 elseif stanza.name == "enabled" then |
86 elseif stanza.name == "enabled" then |
87 |
87 |
88 if stanza.attr.id then |
88 if stanza.attr.id then |