Skip to content

Commit 11d22dc

Browse files
Fixed the ordering of async calls
1 parent 8ed9b54 commit 11d22dc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ var bs_local_args = { 'key': '<browserstack-accesskey>' };
2424
// starts the Local instance with the required arguments
2525
bs_local.start(bs_local_args, function() {
2626
console.log("Started BrowserStackLocal");
27-
});
2827

29-
// check if BrowserStack local instance is running
30-
console.log(bs_local.isRunning());
28+
// check if BrowserStack local instance is running
29+
console.log(bs_local.isRunning());
3130

32-
// stop the Local instance
33-
bs_local.stop(function() {
34-
console.log("Stopped BrowserStackLocal");
31+
// stop the Local instance
32+
bs_local.stop(function() {
33+
console.log("Stopped BrowserStackLocal");
34+
});
3535
});
3636

3737
```

0 commit comments

Comments
 (0)