@leofcoin/peernet 0.14.12 → 0.14.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/peernet.js +1 -1
- package/package.json +1 -1
package/dist/browser/peernet.js
CHANGED
|
@@ -2423,7 +2423,7 @@ class Peer {
|
|
|
2423
2423
|
|
|
2424
2424
|
async #runQue() {
|
|
2425
2425
|
this.#queRunning = true
|
|
2426
|
-
if (this.#messageQue.length > 0 && this.channel
|
|
2426
|
+
if (this.#messageQue.length > 0 && this.channel?.bufferedAmount + this.#messageQue[0]?.length < this.#MAX_BUFFERED_AMOUNT) {
|
|
2427
2427
|
const message = this.#messageQue.shift()
|
|
2428
2428
|
|
|
2429
2429
|
switch (this.channel?.readyState) {
|