Skip to content

Commit 7b834a9

Browse files
authored
Merge pull request browserstack#10 from browserstack/stop
fixes stop warning
2 parents e72da4d + 1622d2c commit 7b834a9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

lib/Local.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ public function __construct() {
1616
$this->key = getenv("BROWSERSTACK_ACCESS_KEY");
1717
$this->logfile = getcwd() . "/local.log";
1818
$this->user_args = array();
19+
$this->binary_path = "";
20+
$this->folder_flag = "";
21+
$this->folder_path = "";
22+
$this->force_local_flag = "";
23+
$this->local_identifier_flag = "";
24+
$this->only_flag = "";
25+
$this->only_automate_flag = "";
26+
$this->proxy_host = "";
27+
$this->proxy_port = "";
28+
$this->proxy_user = "";
29+
$this->proxy_pass = "";
30+
$this->force_proxy_flag = "";
31+
$this->force_flag = "";
32+
$this->verbose_flag = "";
33+
$this->hosts = "";
1934
}
2035

2136
public function __destruct() {
@@ -113,8 +128,10 @@ public function start($arguments) {
113128
}
114129

115130
public function stop() {
131+
if(!$this->pid) return;
116132
$call = $this->stop_command();
117133
shell_exec("$call");
134+
$this->pid = null;
118135
}
119136

120137
public function start_command() {

0 commit comments

Comments
 (0)