Permalink
Browse files

preventing from cycling when resuming is interrupted

  • Loading branch information...
1 parent 5aa1ff3 commit f02137c5da55efb3ea2d0f7a117236a6b6a29d75 @pgte committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sax.js
View
2 lib/sax.js
@@ -597,7 +597,7 @@ function resume () {
this.error = null
this.resuming = true
this.paused = false
- while (this._buffers.length) {
+ while (this.resuming && this._buffers.length) {
this.write(this._buffers.shift())
}
this.resuming = false

0 comments on commit f02137c

Please sign in to comment.