Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix: name of property and make it stop properly (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
koropicot authored and vasco-santos committed Jun 27, 2018
1 parent 4346852 commit 8f9bef6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ class Railing extends EventEmitter {
stop (callback) {
setImmediate(callback)

if (this.timer) {
clearInterval(this.timer)
this.timer = null
if (this._timer) {
clearInterval(this._timer)
this._timer = null
}
}
}
Expand Down

0 comments on commit 8f9bef6

Please sign in to comment.