Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use correct option when checking dupe instances

Previously, the code looked at `options.port`, which isn't a thing. So, the port
was always the string `'undefined'`. Instead, look at `options.child.port`.

[fix #124]
[close #136]
commit 566b885baee7cbf0f0e11a993a9dc42081e12886 1 parent 3235388
@lawnsea lawnsea authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/spooky.js
View
3  lib/spooky.js
@@ -102,7 +102,8 @@ function Spooky(options, callback) {
serializeMethods(options.casper);
if (options.child.transport === 'http') {
- this._child = Spooky._instances[options.port] = this._spawnChild();
+ this._child =
+ Spooky._instances[options.child.port] = this._spawnChild();
this._rpcClient = new tinyjsonrpc.StreamClient({
server: new RequestStream({
Please sign in to comment.
Something went wrong with that request. Please try again.