Skip to content

Commit

Permalink
Fixes #4: Avoid EventEmitter warinings on S7Endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
gfcittolin committed Jun 4, 2017
1 parent e0c4f68 commit b6f8bd3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version: 1.1.2
------------
- Fixes #4: Avoid EventEmitter warnings when lots of S7In nodes are used

Version: 1.1.1
------------
- Fix default value of new timeout configuration
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-s7",
"version": "1.1.1",
"version": "1.1.2",
"description": "A Node-RED node to interact with Siemens S7 PLCs",
"main": "index.js",
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions red/s7.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ module.exports = function(RED) {
}

RED.nodes.createNode(this, config);

//avoids warnings when we have a lot of S7In nodes
this.setMaxListeners(0);

node._vars = createTranslationTable(vars);
node._conn = new nodes7({
Expand Down

0 comments on commit b6f8bd3

Please sign in to comment.