Skip to content

Commit

Permalink
Fix peripheral.services not cleared when disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
Babibubebon committed Feb 19, 2017
1 parent 18c51f0 commit 14ea17e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/peripheral.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Peripheral.prototype.connect = function(callback) {
Peripheral.prototype.disconnect = function(callback) {
if (callback) {
this.once('disconnect', function() {
this.services = null;
callback(null);
});
}
Expand Down

0 comments on commit 14ea17e

Please sign in to comment.