aboutsummaryrefslogtreecommitdiff
path: root/xmpp/component.go
diff options
context:
space:
mode:
authorbodqhrohro <bodqhrohro@gmail.com>2020-01-10 16:02:25 +0300
committerbodqhrohro <bodqhrohro@gmail.com>2020-01-10 16:02:25 +0300
commitfd1fd560bc7dedd33a4e5232dfbcd9e0f7d88c92 (patch)
tree03256d85335fa1722a4719c188d86cba7433f122 /xmpp/component.go
parent23f2a85301f2ee5af867fa774a406cf308733714 (diff)
Try to resume connection and resend a stanza on failure
Diffstat (limited to 'xmpp/component.go')
-rw-r--r--xmpp/component.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/component.go b/xmpp/component.go
index d1c71ae..bbf0483 100644
--- a/xmpp/component.go
+++ b/xmpp/component.go
@@ -76,9 +76,9 @@ func heartbeat(component *xmpp.Component) {
for {
time.Sleep(60e9)
for key, presence := range gateway.Queue {
- err = component.Send(presence)
+ err = gateway.ResumableSend(component, presence)
if err != nil {
- gateway.LogBadPresence(err, presence)
+ gateway.LogBadPresence(presence)
} else {
delete(gateway.Queue, key)
}