aboutsummaryrefslogtreecommitdiff
path: root/xmpp/component.go
diff options
context:
space:
mode:
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)
}