From f9a6986055b5ea1128130ae3531452beba66d0fb Mon Sep 17 00:00:00 2001 From: p42ity Date: Sun, 27 Oct 2024 11:19:14 +0100 Subject: [PATCH] Reset outputFileWrittenLatch for every new voice record --- .../java/eu/siacs/conversations/ui/ConversationFragment.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index d5f533ea59..97325557fc 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -5379,6 +5379,7 @@ public class ConversationFragment extends XmppFragment } private void setupFileObserver(final File directory) { + outputFileWrittenLatch = new CountDownLatch(1); mFileObserver = new FileObserver(directory.getAbsolutePath()) { @Override