                             console.warn("query #{@_table}: _run: not first error -- ", err)
                         @_reconnect()
                     else
-                        @_update_change(resp)
+                        if resp?.event != 'query_cancel'
+                            @_update_change(resp)
 
     _save: (cb) =>
         #console.log("_save(#{@_table})")


    _reconnect: =>
        if @_closed
            throw Error("object is closed")
        #dbg = (m) -> console.log("_reconnect: #{m}")
        #dbg()
        if not @_client._connected

class SyncTable extends EventEmitter
    constructor: (@_query, @_options, @_client, @_debounce_interval=2000) ->
        @_init_query()
        @_init()

    _init: ->
        delete @_closed

        # The value of this query locally.
        @_value_local = undefined
