node-red-node-mysql
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -68,4 +68,4 @@ | ||
this.connect = function() { | ||
if (!this.connected && !this.connecting) { | ||
node.connect = function() { | ||
if (!node.connected && !node.connecting) { | ||
doConnect(); | ||
@@ -75,9 +75,16 @@ } | ||
this.on('close', function(done) { | ||
if (this.tick) { clearTimeout(this.tick); } | ||
if (this.check) { clearInterval(this.check); } | ||
node.connected = false; | ||
node.on('close', function(done) { | ||
if (node.tick) { clearTimeout(node.tick); } | ||
if (node.check) { clearInterval(node.check); } | ||
// node.connection.release(); | ||
node.emit("state"," "); | ||
node.pool.end(function(err) { done(); }); | ||
if (node.connected) { | ||
node.connected = false; | ||
node.pool.end(function(err) { done(); }); | ||
} | ||
else { | ||
delete node.pool; | ||
done(); | ||
} | ||
}); | ||
@@ -178,3 +185,3 @@ } | ||
else { | ||
this.error(RED._("mysql.errors.notconfigured")); | ||
node.error(RED._("mysql.errors.notconfigured")); | ||
} | ||
@@ -181,0 +188,0 @@ } |
{ | ||
"name": "node-red-node-mysql", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A Node-RED node to read and write to a MySQL database", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
18580
228