Skip to content

Commit

Permalink
fix(resolve): fix incorrect method for sending message
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed May 27, 2017
1 parent 5b7e05f commit bb92a28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WorkerPool.js
Expand Up @@ -131,7 +131,7 @@ class PoolWorker {
const { context, request, questionId } = message;
const { data } = this.jobs[id];
data.resolve(context, request, (error, result) => {
this.worker.send({
this.writeJson({
type: 'result',
id: questionId,
error,
Expand Down

0 comments on commit bb92a28

Please sign in to comment.