diff --git a/lib/browser.js b/lib/browser.js index 699fe42ee..1023194e8 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -15,7 +15,6 @@ class Browser { this.id = id this.fullName = fullName this.name = helper.browserFullNameToShort(fullName) - this.state = CONNECTED this.lastResult = new BrowserResult() this.disconnectsCount = 0 this.activeSockets = [socket] @@ -30,6 +29,7 @@ class Browser { this.noActivityTimeoutId = null this.pendingDisconnect = null + this.setState(CONNECTED) } init () { diff --git a/lib/file-list.js b/lib/file-list.js index 135d0b15c..bdc48b908 100644 --- a/lib/file-list.js +++ b/lib/file-list.js @@ -10,7 +10,7 @@ const _ = require('lodash') const File = require('./file') const Url = require('./url') const helper = require('./helper') -const log = require('./logger').create('watcher') +const log = require('./logger').create('filelist') const createPatternObject = require('./config').createPatternObject class FileList {