mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-09 23:56:41 +00:00
Fix reading empty partial body part (again)
Broken in 5dcaf85.
This commit is contained in:
parent
5dcaf85f5a
commit
cd6eadd6e0
@ -235,7 +235,7 @@ export default {
|
|||||||
8) | await reader.readByte();
|
8) | await reader.readByte();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (packet_length >= 0) {
|
if (packet_length > 0) {
|
||||||
let bytesRead = 0;
|
let bytesRead = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
if (writer) await writer.ready;
|
if (writer) await writer.ready;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user