Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #510 from Softmotions/master

Do nothing on gfs read stream resume() if it wasn't paused
  • Loading branch information...
commit 3e39029389ea171685f16a4ae9d478e58118014a 2 parents 8d5291f + 8668b78
@christkv christkv authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/mongodb/gridfs/readstream.js
View
3  lib/mongodb/gridfs/readstream.js
@@ -148,6 +148,9 @@ ReadStream.prototype.destroy = function() {
* @api public
*/
ReadStream.prototype.resume = function() {
+ if (this.paused === false) {
+ return;
+ }
this.paused = false;
var self = this;
if(self.pendingChunk != null) {
Please sign in to comment.
Something went wrong with that request. Please try again.