aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-31 15:28:17 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-31 15:28:17 -0700
commitcc841c634212cf3637c941be84db9a5cccf411ca (patch)
tree0d32506016318bf8eb33b2af19dbf18c45a3a02a /src
parent147062c363e3d4bc35afd74dbc9153b70b9d7bf9 (diff)
send ArrayBuffers, not ArrayBufferViews, in socket code, to handle older browsers
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index 4ad6e06a..18dfecbb 100644
--- a/src/library.js
+++ b/src/library.js
@@ -6598,7 +6598,7 @@ LibraryManager.library = {
#if SOCKET_DEBUG
Module.print(['sender', data, data.length, '|', Array.prototype.slice.call(data)]);
#endif
- info.sendQueue.push(new Uint8Array(data)); // must copy, because while this waits memory can change!
+ info.sendQueue.push(new Uint8Array(data).buffer); // must copy, because while this waits memory can change!
} else {
info.senderWaiting = false; // we are a setTimeout callback
if (info.sendQueue.length == 0) return;