diff options
Diffstat (limited to 'packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py')
| -rw-r--r-- | packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py b/packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py index 0434554..eafdaed 100644 --- a/packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py +++ b/packages/meshbay-node/src/meshbay_node/transport/webrtc/files.py @@ -319,6 +319,8 @@ class FilesMixin: if self._channel is None or self._channel.readyState != "open": return self._send(chunk_data) + if leased: + self._account(tr, len(chunk_data.get("ct") or b"")) log.debug("dl: sent file=%s chunk=%s bytes=%s buffered=%s", file_id[:12], chunk_index, len(chunk_data.get("ct") or b""), getattr(self._channel, "bufferedAmount", "?")) |