mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-19 08:52:15 +01:00
parent
e48553ec57
commit
8098196083
@ -132,8 +132,8 @@ public abstract class Uploader implements MessageConsumer {
|
||||
new MessageSiphon(process.getErrorStream(), this, 100);
|
||||
|
||||
// wait for the process to finish, but not forever
|
||||
// kill the flasher process after 2 minutes to avoid 100% cpu spinning
|
||||
if (!process.waitFor(2, TimeUnit.MINUTES)) {
|
||||
// kill the flasher process after 5 minutes to avoid 100% cpu spinning
|
||||
if (!process.waitFor(5, TimeUnit.MINUTES)) {
|
||||
process.destroyForcibly();
|
||||
}
|
||||
if (!process.isAlive()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user