Skip to content

Commit

Permalink
Changed to standard callback format.
Browse files Browse the repository at this point in the history
  • Loading branch information
justmoon committed Jul 16, 2011
1 parent 8fd36e6 commit 1dca507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsonrpc.js
Expand Up @@ -53,7 +53,7 @@ var Client = function(port, host, user, password) {
var decoded = JSON.parse(buffer);
if(decoded.hasOwnProperty('result')) {
if (callback)
callback(decoded.result);
callback(null, decoded.result);
}
else {
if (errback)
Expand Down

0 comments on commit 1dca507

Please sign in to comment.