made convertDia blocking
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -60,8 +60,8 @@ public class FileModule extends BaseHandler implements FileService {
|
||||
var dest = source+".svg";
|
||||
String[] command = {"dia","-e",dest,source.toString()};
|
||||
try {
|
||||
Runtime.getRuntime().exec(command);
|
||||
} catch (IOException e) {
|
||||
Runtime.getRuntime().exec(command).waitFor();
|
||||
} catch (IOException | InterruptedException e) {
|
||||
LOG.log(WARNING,"Failed to convert {} to SVG file",source,e);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user