summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-12-02 09:58:23 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-12-02 09:58:23 +0200
commit2204dfd1e0df8b02092004542e7c120f9f6a981e (patch)
tree43a422af8ab948c839414f90e40a1ceb377c667f /src
parentcface45b7cfd084f65ead1d5bfa6ecdc639d7017 (diff)
MimeHooks: Fixed issue with waiting for output
Diffstat (limited to 'src')
-rw-r--r--src/mimehooks.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mimehooks.c b/src/mimehooks.c
index 3d999aba..f60ea593 100644
--- a/src/mimehooks.c
+++ b/src/mimehooks.c
@@ -45,8 +45,7 @@ iBlock *run_FilterHook_(const iFilterHook *d, const iString *mime, const iBlock
45 iRelease(args); 45 iRelease(args);
46 start_Process(proc); 46 start_Process(proc);
47 writeInput_Process(proc, body); 47 writeInput_Process(proc, body);
48 waitForFinished_Process(proc); 48 iBlock *output = readOutputUntilClosed_Process(proc);
49 iBlock *output = readOutput_Process(proc);
50 if (!startsWith_Rangecc(range_Block(output), "20")) { 49 if (!startsWith_Rangecc(range_Block(output), "20")) {
51 /* Didn't produce valid output. */ 50 /* Didn't produce valid output. */
52 delete_Block(output); 51 delete_Block(output);