1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 15:11:03 +00:00

Prevent loop

This commit is contained in:
M66B 2023-09-26 22:19:14 +02:00
parent 44161904a4
commit ca5fe2c666

View file

@ -5053,6 +5053,10 @@ public class FragmentCompose extends FragmentBase {
int len = future.get(COPY_ATTACHMENT_TIMEOUT, TimeUnit.SECONDS);
if (len == -1)
break;
if (len == 0) {
Thread.sleep(500L);
continue;
}
size += len;
os.write(buffer, 0, len);