 
   installConnector : (connector, callback=->) =>
     debug 'installConnector', connector
+    return if @connectorsInstalled[connector]
+
     nodeModulesDir = path.join @config.tmpPath, 'node_modules'
     fs.mkdirpSync nodeModulesDir
     connectorPath = path.join nodeModulesDir, connector

          @emit 'stderr', error
          return callback()

        @emit 'npm:stderr', stderr.toString()
        @emit 'npm:stdout', stdout.toString()
        debug 'forever stdout', stdout.toString()
        debug 'forever stderr', stderr.toString()
        callback()
    )


  constructor: (@config) ->
    @deviceProcesses = {}
    @runningDevices = []
    @connectorsInstalled = {}

  refreshDevices: (devices, callback) =>
    debug 'refreshDevices', _.pluck(devices, 'uuid')
