Skip to content

Instantly share code, notes, and snippets.

@mranney
Created May 2, 2012 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mranney/2572830 to your computer and use it in GitHub Desktop.
Save mranney/2572830 to your computer and use it in GitHub Desktop.
GetBody.prototype.on_abort = function () {
log("get aborted", this.message_id + " after " + this.bytes_written + " bytes.");
if (this.disk_stream && this.disk_stream.readable) {
this.disk_stream.destroy(); // note that this has to be destroy or we'll keep getting data events
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment