mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 15:11:03 +00:00
Prevent loop
This commit is contained in:
parent
44161904a4
commit
ca5fe2c666
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue