Skip to content

Commit

Permalink
clean clients should not have persistent subscription records.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Drucker committed Oct 5, 2017
1 parent ffefb54 commit 8d1e3d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/handlers/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ function storeSubscriptions (sub, done) {
return done(null, sub)
}

if (client.clean) {
return done(null, sub)
}

perst.addSubscriptions(client, packet.subscriptions, function (err) {
done(err, sub)
})
Expand Down

0 comments on commit 8d1e3d3

Please sign in to comment.