解决打招呼消息的bug
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
import signal
|
||||
import sys
|
||||
import time
|
||||
import json
|
||||
import wda
|
||||
import threading
|
||||
import subprocess
|
||||
@@ -30,7 +28,6 @@ class Deviceinfo(object):
|
||||
self._lock = threading.Lock()
|
||||
self._pending_udids = set()
|
||||
|
||||
|
||||
try:
|
||||
self.iproxy_path = self._iproxy_path()
|
||||
self.iproxy_dir = self.iproxy_path.parent
|
||||
@@ -96,7 +93,6 @@ class Deviceinfo(object):
|
||||
continue
|
||||
|
||||
now_udids = {d.udid for d in lists if d.conn_type == ConnectionType.USB}
|
||||
|
||||
# 1. 处理“已插入但未信任”的设备,一旦信任就补连接
|
||||
for udid in list(self._pending_udids):
|
||||
if udid not in now_udids:
|
||||
@@ -281,7 +277,6 @@ class Deviceinfo(object):
|
||||
if not self._spawn_iproxy:
|
||||
LogManager.error("iproxy 启动器未就绪,无法建立端口映射(初始化时未找到 iproxy)。", udid)
|
||||
return None
|
||||
|
||||
try:
|
||||
p = self._spawn_iproxy(udid, self.screenProxy, 9100)
|
||||
LogManager.info(f"启动 iproxy 成功,本地 {self.screenProxy} -> 设备 9100", udid)
|
||||
|
||||
Reference in New Issue
Block a user