Fail safe.

This commit is contained in:
Michael Lipp 2023-06-08 12:53:52 +02:00
parent f269743dcc
commit 0225d02114

View file

@ -105,6 +105,9 @@ public class QemuMonitor extends Component {
*/
@Handler
public void onStart(Start event) throws IOException {
if (socketPath == null) {
return;
}
Files.deleteIfExists(socketPath);
fire(new WatchFile(socketPath));
}