Cancel stty timer if process is finished.
@@ -216,8 +216,11 @@ public class OConsoleDatabaseApp extends OrientConsole implements OCommandOutput
}
}, 15 * 1000);
+
p.waitFor(10, TimeUnit.SECONDS);
+ timer.cancel();
+
return p.exitValue();
}
