Skip to content

Commit

Permalink
Merge pull request #6 from iczero/add-lockfile-change
Browse files Browse the repository at this point in the history
Fire `connect` event on lockfile change to support game crash or task manager termination
  • Loading branch information
Pupix authored Mar 1, 2019
2 parents 166f3d4 + 7ba130e commit 06e7fe1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class LCUConnector extends EventEmitter {
this._lockfileWatcher = chokidar.watch(lockfilePath, { disableGlobbing: true });

this._lockfileWatcher.on('add', this._onFileCreated.bind(this));
this._lockfileWatcher.on('change', this._onFileCreated.bind(this));
this._lockfileWatcher.on('unlink', this._onFileRemoved.bind(this));
}

Expand Down

0 comments on commit 06e7fe1

Please sign in to comment.