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

fix name of property and make it stop properly #77

Merged
merged 1 commit into from
Jun 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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