diff --git a/org.jdrupes.vmoperator.runner.qemu/src/org/jdrupes/vmoperator/runner/qemu/Runner.java b/org.jdrupes.vmoperator.runner.qemu/src/org/jdrupes/vmoperator/runner/qemu/Runner.java index 130ce68..9a79250 100644 --- a/org.jdrupes.vmoperator.runner.qemu/src/org/jdrupes/vmoperator/runner/qemu/Runner.java +++ b/org.jdrupes.vmoperator.runner.qemu/src/org/jdrupes/vmoperator/runner/qemu/Runner.java @@ -342,15 +342,16 @@ public class Runner extends Component { */ @Handler(priority = 100) public void onStart(Start event) { + if (config == null) { + // Missing configuration, fail + event.cancel(true); + fire(new Stop()); + return; + } + rep = newEventPipeline(); event.setAssociated(EventPipeline.class, rep); try { - if (config == null) { - // Missing configuration, fail - fire(new Stop()); - return; - } - // Store process id try (var pidFile = Files.newBufferedWriter( config.runtimeDir.resolve("runner.pid"))) {