leng-yue / py-scrcpy-client

An easy to use python scrcpy client
https://leng-yue.github.io/py-scrcpy-client/
MIT License
283 stars 71 forks source link

if adb forward err, maybe stop is a good ideal #31

Closed AmazingRaise closed 2 years ago

AmazingRaise commented 2 years ago

when adb forward err, did not see nothing... then block...

    for _ in range(self.connection_timeout // 100):
        try:
            self.__video_socket = self.device.create_connection(
                Network.LOCAL_ABSTRACT, "scrcpy"
            )
            break
        except AdbError:
            print('adb forward err.. ')
            sleep(0.1)
            pass

maybe need raise error

AmazingRaise commented 2 years ago

self.device.create_connection(Network.LOCAL_ABSTRACT, "scrcpy"),不知道为什么返回报错

leng-yue commented 2 years ago

服务器前几秒不一定成功启动了, 需要等等