diff --git a/lib/streaming-api-connection.js b/lib/streaming-api-connection.js index 3b18ed26..4bfa66e8 100644 --- a/lib/streaming-api-connection.js +++ b/lib/streaming-api-connection.js @@ -98,7 +98,7 @@ StreamingAPIConnection.prototype._startPersistentConnection = function () { self.emit('error', error); // stop the stream explicitly so we don't reconnect self.stop() - delete body + body = null; }) return } else if (self.response.statusCode === 420) {