summaryrefslogtreecommitdiff
path: root/src/rhimportd
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-21 18:12:08 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-21 18:12:08 (GMT)
commitfec84cb64ad60368339344ee454b003198444d8b (patch)
tree73cf833c5f1796c6ac7b6b86ec5751e673b95bce /src/rhimportd
parentf0a8f4d345692bffddad0d1ba1c90b669bb78a81 (diff)
session store uses the list-update as a ping now
Diffstat (limited to 'src/rhimportd')
-rw-r--r--src/rhimportd/ctrlWebSocket.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rhimportd/ctrlWebSocket.go b/src/rhimportd/ctrlWebSocket.go
index 5af59d5..1f04b84 100644
--- a/src/rhimportd/ctrlWebSocket.go
+++ b/src/rhimportd/ctrlWebSocket.go
@@ -292,6 +292,9 @@ func webSocketListUpdate(added, removed map[string]string, userdata interface{})
if len(arg.closed) > 0 {
return false
}
+ if added == nil && removed == nil {
+ return true
+ }
select {
case arg.updates <- webSocketSessionListUpdate{added, removed}:
default: