Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UpServer tries to reload twice in a row and fails #52

Open
accerqueira opened this issue Sep 29, 2012 · 0 comments
Open

UpServer tries to reload twice in a row and fails #52

accerqueira opened this issue Sep 29, 2012 · 0 comments

Comments

@accerqueira
Copy link

The command line I use was:
node node_modules/up/bin/up -p 9400 -w server

After I touched a file, the following happens:

  up-cli /home/accerqueira/experiments/server/server.js change detected - reloading
  up reloading - spawning 2 new workers
  up spawning 2 workers from master 8738
  up worker 8745 created
  up worker 8746 created
  up-cli /home/accerqueira/experiments/server/server.js change detected - reloading
  up killing spawning worker 8745

/home/accerqueira/experiments/server/node_modules/up/lib/up.js:127
    this.spawning[i].shutdown();
                     ^
TypeError: Cannot call method 'shutdown' of undefined
    at UpServer.reload (/home/accerqueira/experiments/gg-web/node_modules/up/lib/up.js:127:22)
    at /home/accerqueira/experiments/gg-web/node_modules/up/bin/up:288:9
    at FSWatcher.<anonymous> (/home/accerqueira/experiments/gg-web/node_modules/up/bin/up:275:9)
    at FSWatcher.emit (events.js:70:17)
    at FSEvent.onchange (fs.js:665:12)

I'm using 15e82c6, traced the error back to dc4e57e, when it was working, but I could fix by reverting 2 lines from 6ad3f6b.

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

No branches or pull requests

1 participant