Skip to content

Commit

Permalink
fix(fileListing) on file listing worker restart resume like nothing b…
Browse files Browse the repository at this point in the history
…ad happened

refs #202
  • Loading branch information
Basarat Ali Syed committed Sep 21, 2016
1 parent 9e90b3a commit d2c5201
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/workers/fileListing/fileListingMaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const _checkTypes: typeof contract.master = Master;
export const {worker} = sw.startWorker({
workerPath: __dirname + '/fileListingWorker',
workerContract: contract.worker,
masterImplementation: Master
masterImplementation: Master,
onCrashRestart: ()=> {
start();
}
});

export function start() {
Expand Down

0 comments on commit d2c5201

Please sign in to comment.