browserstacktunnel-wrapper
Advanced tools
Comparing version 1.4.0 to 1.4.1
{ | ||
"name": "browserstacktunnel-wrapper", | ||
"description": "A Node.js wrapper for the BrowserStack java tunnel client ", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"homepage": "https://github.com/pghalliday/node-BrowserStackTunnel.git", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -73,2 +73,4 @@ node-BrowserStackTunnel | ||
[![Donate Bitcoins](https://coinbase.com/assets/buttons/donation_large-6ec72b1a9eec516944e50a22aca7db35.png)](https://coinbase.com/checkouts/9d121c0321590556b32241bbe7960362) | ||
[![Donate Bitcoins](http://i.imgur.com/b5BZsFH.png)](bitcoin:17LtnRG4WxRLYBWzrBoEKP3F7fZx8vcAsK?amount=0.01&label=grunt-mocha-test) | ||
[17LtnRG4WxRLYBWzrBoEKP3F7fZx8vcAsK](bitcoin:17LtnRG4WxRLYBWzrBoEKP3F7fZx8vcAsK?amount=0.01&label=grunt-mocha-test) |
@@ -181,5 +181,8 @@ var util = require('util'), | ||
this.stop = function (callback) { | ||
this.once('stop', callback); | ||
if (this.state !== 'started') { | ||
this.emit('stop', new Error('child not started')); | ||
if (this.state !== 'stop' && this.listenerCount('stop') === 0) { | ||
this.once('stop', callback); | ||
} else if (this.state !== 'started') { | ||
var err = new Error('child not started'); | ||
this.emit('stop', err); | ||
callback(err); | ||
} | ||
@@ -192,2 +195,2 @@ | ||
util.inherits(BrowserStackTunnel, EventEmitter); | ||
module.exports = BrowserStackTunnel; | ||
module.exports = BrowserStackTunnel; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49524
1325
76