When calling Local.stop() with a local identifier, this library doesn't appear to actually use the local identifier when stopping BrowserStackLocal. Consequently, if multiple BrowserStackLocal instances are running as daemons with different identifiers, all are stopped.
(Compare with using the executable, BrowserStackLocal.exe, with --daemon start. In that case, the local identifier is used, and only that instance is stopped. If the identifier is omitted, then all instances are stopped.)
Expected Behavior
If an identifier is provided, then calling Local.stop() should only stop any BrowserStackLocal instances with the corresponding identifier.
Actual Behavior
Even if an identifier is provided, calling Local.stop() stops all BrowserStackLocal instances without regard to their identifiers.
When calling Local.stop() with a local identifier, this library doesn't appear to actually use the local identifier when stopping BrowserStackLocal. Consequently, if multiple BrowserStackLocal instances are running as daemons with different identifiers, all are stopped.
(Compare with using the executable, BrowserStackLocal.exe, with --daemon start. In that case, the local identifier is used, and only that instance is stopped. If the identifier is omitted, then all instances are stopped.)
Expected Behavior
If an identifier is provided, then calling Local.stop() should only stop any BrowserStackLocal instances with the corresponding identifier.
Actual Behavior
Even if an identifier is provided, calling Local.stop() stops all BrowserStackLocal instances without regard to their identifiers.