summaryrefslogtreecommitdiffstats
path: root/endpoints
diff options
context:
space:
mode:
authorIan Moore <ian.moore@fireeye.com>2015-08-07 15:28:17 -0400
committerIan Moore <ian.moore@fireeye.com>2015-08-07 15:28:17 -0400
commit0ffda268ad634ed2cc1f66fbecf01fe362f5b181 (patch)
treede17d935cfbd2247dbc7b4157bfccfa3c8865d5a /endpoints
parentd6a2db930405c20aa4ac6876d67172a2869c5de0 (diff)
downloadphpvirtualbox-0ffda268ad634ed2cc1f66fbecf01fe362f5b181.zip
phpvirtualbox-0ffda268ad634ed2cc1f66fbecf01fe362f5b181.tar.gz
phpvirtualbox-0ffda268ad634ed2cc1f66fbecf01fe362f5b181.tar.bz2
Fixed host-only network DHCP server settings
Diffstat (limited to 'endpoints')
-rw-r--r--endpoints/lib/vboxconnector.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/endpoints/lib/vboxconnector.php b/endpoints/lib/vboxconnector.php
index 071aaf1..c1d6cd7 100644
--- a/endpoints/lib/vboxconnector.php
+++ b/endpoints/lib/vboxconnector.php
@@ -2356,7 +2356,6 @@ class vboxconnector {
// progress operation result
$response = array();
- $success = 1;
$error = 0;
// Connect to vboxwebsrv
@@ -2378,7 +2377,6 @@ class vboxconnector {
} catch (Exception $e) {
$this->errors[] = $e;
throw new Exception('Could not obtain progress operation: '.$args['progress']);
- $success = 0;
}
$response['progress'] = $args['progress'];
@@ -2424,16 +2422,9 @@ class vboxconnector {
}
} catch (Exception $null) {}
- // Some progress operations seem to go away after completion
- if(!($this->session->handle && (string)$this->session->state == 'Unlocked')) {
- $this->errors[] = $e;
- $success = 0;
- }
-
}
if($error) {
- $success = 0;
if(@$args['catcherrs']) $response['error'] = $error;
else $this->errors[] = new Exception($error['message']);