Removing error if vmdestroy is called without VirtualBox

This commit is contained in:
Jeffrey Morgan 2015-02-13 11:26:11 -08:00
parent 9b5b70f562
commit 2c587445e9
1 changed files with 2 additions and 5 deletions

View File

@ -31,8 +31,8 @@ var VirtualBox = {
return util.exec(['pkill', 'VirtualBox']);
}).then(() => {
return util.exec(['pkill', 'VBox']);
}).catch(err => {
}).catch(() => {
});
},
vmstate: function (name) {
@ -48,9 +48,6 @@ var VirtualBox = {
},
vmdestroy: function (name) {
return Promise.coroutine(function* () {
if (!this.installed()) {
return Promise.reject('VirtualBox not installed.');
}
try {
var state = yield this.vmstate(name);
if (state === 'running') {