 
         @connect      = misc.retry_until_success_wrapper(f:@_connect, logname:'connect')
         # min_interval: to avoid possibly DOS's a local hub -- not sure what best choice is here.
-        @sync = misc.retry_until_success_wrapper(f:@_sync, min_interval:200, logname:'localhub_sync')
+        @sync         = misc.retry_until_success_wrapper(f:@_sync, min_interval:200, logname:'localhub_sync')
 
         # The downstream (web browser) clients of this hub
         @diffsync_clients = {}

                        # This is normal -- it's because the diffsync algorithm only allows sync with
                        # one client (and upstream) at a time.
                        cb(err); return
                    if err.indexOf("unknown") != -1
                        winston.debug("sync: reconnecting...")
                        @_connect(cb); return
                cb(err)
            else
                winston.debug("codemirror session local hub sync -- pushed edits, thus completing cycle")
                @_last_sync = after # what was the last successful sync with upstream.
                if before != after
                    @_tell_clients_to_sync()

        @_sync_lock = true
        before = @diffsync_server.live
        @diffsync_server.push_edits (err) =>
            after = @diffsync_server.live
            @set_content(after)
            if err
                # We do *NOT* remove the sync_lock in this branch; only do that after a successful sync, since
                # otherwise clients think they have successfully sync'd with the hub, but when the hub resets,
                # the clients end up doing the wrong thing. 
                winston.debug("codemirror session local hub sync error -- #{err}")
                if typeof(err) == 'string'
                    err = err.toLowerCase()
