Fail safe.
This commit is contained in:
parent
f269743dcc
commit
0225d02114
1 changed files with 3 additions and 0 deletions
|
|
@ -105,6 +105,9 @@ public class QemuMonitor extends Component {
|
||||||
*/
|
*/
|
||||||
@Handler
|
@Handler
|
||||||
public void onStart(Start event) throws IOException {
|
public void onStart(Start event) throws IOException {
|
||||||
|
if (socketPath == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Files.deleteIfExists(socketPath);
|
Files.deleteIfExists(socketPath);
|
||||||
fire(new WatchFile(socketPath));
|
fire(new WatchFile(socketPath));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue