Skip to content

Commit

Permalink
v7.4.0 Add skipRefResolver options
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy van de Water committed Jun 16, 2017
1 parent 37af630 commit 1608145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "command-and-control-service",
"version": "7.3.5",
"version": "7.4.0",
"description": "command-and-control-service an Octoblu Service",
"keywords": [
"Octoblu",
Expand Down
3 changes: 3 additions & 0 deletions src/services/message-service.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class MessageService
commandAndControl = _.get @device, 'commandAndControl', {}
@errorDevice = commandAndControl.errorDevice
@rulesets ?= commandAndControl.rulesets ? @device.rulesets
@skipRefResolver = commandAndControl.skipRefResolver
@meshblu = new Meshblu @meshbluConfig
@benchmarks = {}
SimpleBenchmark.resetIds()
Expand All @@ -32,6 +33,8 @@ class MessageService
async.retry {times: 5, interval: 10, errorFilter: @_retryErrorFilter}, @_resolve, callback

_resolve: (callback) =>
return callback() if @skipRefResolver

@resolver.resolve @device, (error, resolvedDevice) =>
debug "[#{error.uuid} as #{error.as || 'nobody'}]", error.message if error?
return callback error if error?
Expand Down

0 comments on commit 1608145

Please sign in to comment.