|
@@ -118,10 +118,9 @@ DataConnection.prototype._handleDataMessage = function(e) {
|
|
chunkInfo.count += 1;
|
|
chunkInfo.count += 1;
|
|
|
|
|
|
if (chunkInfo.total === chunkInfo.count) {
|
|
if (chunkInfo.total === chunkInfo.count) {
|
|
-
|
|
|
|
- // free up memory before making the recursive call to _handleDataMessage()
|
|
|
|
|
|
+ // Clean up before making the recursive call to `_handleDataMessage`.
|
|
delete this._chunkedData[id];
|
|
delete this._chunkedData[id];
|
|
-
|
|
|
|
|
|
+
|
|
// We've received all the chunks--time to construct the complete data.
|
|
// We've received all the chunks--time to construct the complete data.
|
|
data = new Blob(chunkInfo.data);
|
|
data = new Blob(chunkInfo.data);
|
|
this._handleDataMessage({data: data});
|
|
this._handleDataMessage({data: data});
|