We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d475228 commit fd68f26Copy full SHA for fd68f26
1 file changed
bundles/com.espressif.idf.core/src/com/espressif/idf/core/tools/ToolInitializer.java
@@ -6,6 +6,7 @@
6
7
import java.io.File;
8
import java.io.IOException;
9
+import java.io.OutputStream;
10
import java.nio.file.Files;
11
import java.nio.file.Path;
12
import java.nio.file.Paths;
@@ -275,6 +276,8 @@ public boolean isEimGuiCapable(String eimPath)
275
276
Logger.log("Checking if EIM supports GUI mode with command: " + String.join(" ", pb.command())); //$NON-NLS-1$ //$NON-NLS-2$
277
pb.redirectErrorStream(true);
278
Process process = pb.start();
279
+ // Drain stdout so the process doesn't block
280
+ process.getInputStream().transferTo(OutputStream.nullOutputStream());
281
boolean finished = process.waitFor(5, TimeUnit.SECONDS);
282
if (!finished)
283
{
0 commit comments