Skip to content

Commit

Permalink
Fixed server calls on set/read session
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthonyzou committed Jul 19, 2015
1 parent b90325c commit 01244eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/transmission.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,14 @@ Transmission.prototype.session = function(data, callback) {
method : this.methods.session.set,
tag : uuid()
};
this.callServer(options, callback);
} else {
options = {
method : this.methods.session.get,
tag : uuid()
};
this.callServer(options, data);
}
this.callServer(options, data);
return this;
};

Expand Down

0 comments on commit 01244eb

Please sign in to comment.