| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1105,7 +1105,7 @@ Writable.prototype.destroy = function(err, cb) { | |||
| 1105 | 1105 | const state = this._writableState; | |
| 1106 | 1106 | ||
| 1107 | 1107 | // Invoke pending callbacks. | |
| 1108 | - if ((state[kState] & (kBuffered | kOnFinished | kDestroyed)) !== kDestroyed) { | ||
| 1108 | + if ((state[kState] & (kBuffered | kOnFinished)) !== 0 && (state[kState] & kDestroyed) === 0) { | ||
| 1109 | 1109 | process.nextTick(errorBuffer, state); | |
| 1110 | 1110 | } | |
| 1111 | 1111 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments