Skip to content

Commit

Permalink
Bug fix resubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaauw committed Jun 17, 2018
1 parent 4b86bcd commit 85a0c24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ZPAccessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ ZPAccessory.prototype.resubscribe = function (sid, service) {
'%s: renewed %s subscription %s (timeout %s)', this.name,
service, response.headers.sid, response.headers.timeout
)
setTimeout(function () {
setTimeout(() => {
this.resubscribe(response.headers.sid, service)
}, (this.platform.subscriptionTimeout - 60) * 1000)
})
Expand Down

0 comments on commit 85a0c24

Please sign in to comment.