Skip to content

Commit

Permalink
Merge branch 'master' of github.com:telefonicaid/fiware-monitoring in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
pratid committed Nov 14, 2016
2 parents 14186df + 1ab86a2 commit 13b8080
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions ngsi_adapter/lib/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ function udpRequestListener(socket, message, parserName) {
reqdomain.add(socket);
reqdomain.context = {
trans: txid(),
corr: 'n/a',
op: 'UDP'
};
reqdomain.on('error', function (err) {
Expand Down
4 changes: 2 additions & 2 deletions ngsi_adapter/lib/parsers/common/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ function getParserByName(name) {
try {
/* jshint proto: true, camelcase: false */
var prototype = require(path.join(dir, util.format('%s.js', name))).parser;
if (prototype.__proto__ === null) {
prototype.__proto__ = baseParser; // ensure baseParser is part of the prototype chain
if (Object.getPrototypeOf(prototype) === null) {
Object.setPrototypeOf(prototype, baseParser); // ensure baseParser is part of the prototype chain
}
parser = Object.create(prototype);
parsersCache[name] = parser;
Expand Down

0 comments on commit 13b8080

Please sign in to comment.