 
         socket.on 'disconnect', () =>
             @sockets       = (s for s in @sockets       when s != socket)
-            @queuedSockets = (s for s in @queuedSockets when s != socket)
             @emit('disconnect', address)
-            if not (@sockets.length or @queuedSockets.length)
+            if not @sockets.length
                 @emit 'NoClients'
 
         socket.emit('SetConfig', @_clientEngineConfig)
 
         if !@browserInitialized
-            return @queuedSockets.push(socket)
+            return @sockets.push(socket)
         # the socket is added after the first pageloaded event emitted
         nodes = serialize(@browser.window.document,
                           @resources,

        compressionTable = undefined
        if @server.config.compression
            compressionTable = @compressor.textToSymbol
        @sockets = @sockets.concat(@queuedSockets)
        @queuedSockets = []
        if @server.config.traceProtocol
            @logRPCMethod('PageLoaded', [nodes, @browser.clientComponents, compressionTable])
        for socket in @sockets


        # control if we need to fire a pauseRender event
        @domChanged = true

        # Indicates whether the browser has loaded its first page.
        @browserInitialized = false
