Skip to content

Commit

Permalink
Disconnect from device if in "host" mode
Browse files Browse the repository at this point in the history
  • Loading branch information
alesimula committed Nov 5, 2021
1 parent 2d111e6 commit c0a2dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ class WSAPeriodicConnector {
if (output.contains(RegExp('(^|\\n)(localhost|127.0.0.1):${GState.androidPort.$}\\s+'))) {
if (output.contains(RegExp('(^|\\n)(localhost|127.0.0.1):${GState.androidPort.$}\\s+offline(\$|\\n|\\s)')))
status = ConnectionStatus.OFFLINE;
/*else if (output.contains(RegExp('(^|\\n)(localhost|127.0.0.1):${GState.androidPort.$}\\s+host(\$|\\n|\\s)'))) {
else if (output.contains(RegExp('(^|\\n)(localhost|127.0.0.1):${GState.androidPort.$}\\s+host(\$|\\n|\\s)'))) {
await Process.run('${Env.TOOLS_DIR}\\adb.exe', ['disconnect', '127.0.0.1:${GState.androidPort.$}']);
_tryConnect();
}*/
}
else {
status = ConnectionStatus.CONNECTED;
if (output.contains(RegExp('(^|\\n)127.0.0.1:${GState.androidPort.$}\\s+'))) {
Expand Down

0 comments on commit c0a2dde

Please sign in to comment.