mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: brute_force_connect() was called on linux
This commit is contained in:
parent
bbe4bdae8c
commit
502558dbbd
@ -4,6 +4,7 @@ import platform
|
||||
import re
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from functools import wraps
|
||||
|
||||
@ -805,8 +806,11 @@ class Connection(ConnectionAttr):
|
||||
# brute_force_connect
|
||||
if self.config.Emulator_Serial == 'auto' and available.count == 0:
|
||||
logger.warning(f'No available device found')
|
||||
brute_force_connect()
|
||||
continue
|
||||
if sys.platform == 'win32':
|
||||
brute_force_connect()
|
||||
continue
|
||||
else:
|
||||
break
|
||||
else:
|
||||
break
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user