Skip to content

Commit ff26377

Browse files
author
Ruben Bridgewater
committed
Unref interval
1 parent 6f1f8d4 commit ff26377

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Features
44

55
- Improve parser errors by adding more detailed information to them
66
- Accept manipulated Object.prototypes
7+
- Unref the interval if used
78

89
## v.2.0.4 - 21 Jul, 2016
910

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function concatBuffer (parser, length) {
358358
counter++
359359
pos = 0
360360
if (interval === null) {
361-
interval = setInterval(decreaseBufferPool, 50)
361+
interval = setInterval(decreaseBufferPool, 50).unref()
362362
}
363363
}
364364
list[0].copy(bufferPool, pos, parser.offset, list[0].length)

0 commit comments

Comments
 (0)