diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-01-09 14:06:59 +0100 |
|---|---|---|
| committer | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2025-01-09 15:13:11 +0100 |
| commit | 29e173c888f539ee10d641825fcaeb6ec1e46a0b (patch) | |
| tree | dffef441dcbdd08f06cc51c0ca5a46e05deb4fb9 /android/lib | |
| parent | 7f57b1f767eb79acb372fb54d840c82e55a67fd5 (diff) | |
| download | mullvadvpn-29e173c888f539ee10d641825fcaeb6ec1e46a0b.tar.xz mullvadvpn-29e173c888f539ee10d641825fcaeb6ec1e46a0b.zip | |
Fix panic on capacity=1
As `tokio::sync::mpsc` doesn't allow capacity to be zero,
we cannot support buffering only one key pair if we generate
it before sending. To get around this we use `reserve` to wait
for capacity before generating the key.
Diffstat (limited to 'android/lib')
0 files changed, 0 insertions, 0 deletions
