From dbf2f53eb6a3d0c49bd7585d8e9547dc8c57c95c Mon Sep 17 00:00:00 2001 From: raylu Date: Tue, 9 Aug 2011 00:32:25 -0700 Subject: don't spam xhr's when there is an error or user stops --- updates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updates.go') 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 { -- cgit v1.2.3