erbbysam / webRTCCopy

A simple file sharing application using webRTC-data.io
251 stars 45 forks source link

multiple file download bug #12

Closed erbbysam closed 10 years ago

erbbysam commented 10 years ago

Replication: 3 users, 2 attempting to share files, 3rd user tries downloading both, 1 will always fail to start.

Not sure how this wasn't caught before, but it appears that you are limited to 1 download at a time in a multi-user room. This is because it does not look like window.requestFileSystem (in /js/file-io.js) cannot be called multiple times and is required to start a download.

Maybe the amount of space we request can be expanded to get around this?

erbbysam commented 10 years ago

Added code preventing more than one file download at once.

https://github.com/erbbysam/webRTCCopy/commit/bc023858dcb3baed1857b3d1a0a7c961be44380a