Skip to content

Commit

Permalink
CP: Only assume device not missing on status code 409, when sending r…
Browse files Browse the repository at this point in the history
…eports.
  • Loading branch information
tomas committed Feb 9, 2015
1 parent cfcc120 commit 4dea26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/agent/plugins/control-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function unload_hooks() {
}

function handle_response(what, err, resp) {
if (what == 'report' && (resp && resp.statusCode > 300))
if (what == 'report' && (resp && resp.statusCode == 409))
found();
else if (resp && resp.headers['X-Prey-Commands'])
commands.process(resp.body);
Expand Down

0 comments on commit 4dea26a

Please sign in to comment.