Skip to content

Commit

Permalink
fix #10
Browse files Browse the repository at this point in the history
  • Loading branch information
bachwehbi committed Feb 3, 2015
1 parent 39539d1 commit 368aa7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Stream.prototype.subscribe = function(channel, resource, args, callback) {
vargs.channel = channel;
vargs.resource = resource;
vargs.ttl = args.ttl || 0;
vargs.read = args.read || true; //default true
vargs.read = (typeof( args.read ) === 'undefined' ) ? true : args.read === true; //default true
vargs.write = args.write === true; // default false

if( typeof vargs.ttl !== 'number' )
Expand Down

0 comments on commit 368aa7e

Please sign in to comment.