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