Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

pid is undefined on .terminate() call #40

Open
beezee opened this issue Feb 24, 2012 · 0 comments
Open

pid is undefined on .terminate() call #40

beezee opened this issue Feb 24, 2012 · 0 comments

Comments

@beezee
Copy link

beezee commented Feb 24, 2012

Running node 0.4.9, terminate() calls fail at the first assertion. If I log the pid to console when it is re-set after spawn, it shows up fine. If I store it as an attribute on the worker object and try to reference it there, it always comes back undefined. Here's the code that allows me to reproduce the != fail on the first line of the terminate method

var Worker = require('webworker').Worker
var worker = new Worker(__dirname+'/worker.js');
worker.terminate();

Any thoughts?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant