diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 0f02ac41be..1375b344ac 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -5471,6 +5471,7 @@ public class ConversationFragment extends XmppFragment } private void setupFileObserver(final File directory) { + outputFileWrittenLatch = new CountDownLatch(1); mFileObserver = new FileObserver(directory.getAbsolutePath()) { @Override