summaryrefslogtreecommitdiffstats
path: root/updates.go
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-09 00:32:25 -0700
committerraylu <raylu@mixpanel.com>2011-08-09 00:34:00 -0700
commitdbf2f53eb6a3d0c49bd7585d8e9547dc8c57c95c (patch)
tree1ffb0743f03b7c60ac9ed3dd80b8a95228ae4b01 /updates.go
parent1cae243a08909eb3f0b1a8b3ffcf2f0769ab438f (diff)
downloadaudioaxis-dbf2f53eb6a3d0c49bd7585d8e9547dc8c57c95c.tar.xz
don't spam xhr's when there is an error or user stops
Diffstat (limited to 'updates.go')
-rw-r--r--updates.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/updates.go b/updates.go
index 78db802..e0917cc 100644
--- a/updates.go
+++ b/updates.go
@@ -58,7 +58,7 @@ func addUpdate(pid int, action uint, song *Song) {
listeners[pid] = nil
}
-// assumes locked
+// assumes caller has updateLock
func checkUpdates(pid int, timestamp int64) *Update {
pup, _ := headUpdates[pid]
for pup != nil {