aboutsummaryrefslogtreecommitdiff
path: root/xmpp/component.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/component.go')
-rw-r--r--xmpp/component.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmpp/component.go b/xmpp/component.go
index 4f5ad79..fb5732e 100644
--- a/xmpp/component.go
+++ b/xmpp/component.go
@@ -90,7 +90,9 @@ func heartbeat(component *xmpp.Component) {
if err != nil {
gateway.LogBadPresence(presence)
} else {
+ gateway.QueueLock.Lock()
delete(gateway.Queue, key)
+ gateway.QueueLock.Unlock()
}
}