 
     poll_for_updates: (interval=INIT_POLL_INTERVAL) =>
         retry = (interval) =>
-            next_interval = Math.max(INIT_POLL_INTERVAL,Math.min(MAX_POLL_INTERVAL, POLL_DECAY_RATIO*interval))
+            next_interval = Math.max(INIT_POLL_INTERVAL, Math.min(MAX_POLL_INTERVAL, POLL_DECAY_RATIO*interval))
             @dbg("poll_for_updates", "waiting #{next_interval}ms...")
             setTimeout((()=>@poll_for_updates(next_interval)), interval)
 

                if err
                    cb(err)
                else
                    new_updates = @_process_updates updates, (err) =>
                        # ignore err, since it would be in writing back
                        cb(undefined, new_updates)


                    new_patches[update.string_id].push(update)

        if misc.len(new_patches) == 0
            @dbg("_process_updates", "no new patches, so nothing further to do")
            cb(undefined, false)
            return

        #if updates.length > 0
        #    @dbg("_process_updates",misc.to_json(new_patches))
        @dbg("_process_updates", "#{misc.len(new_patches)} new patches")

        # There are new patches
        write_updates = false
