Skip to content

Commit

Permalink
Merge pull request #23 from MilkFlavor/main
Browse files Browse the repository at this point in the history
_AdbStreamConnection should be removed.
  • Loading branch information
leng-yue committed May 17, 2022
2 parents 4ae9b2d + 04e7a83 commit a4daad4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scrcpy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import cv2
import numpy as np
from adbutils import AdbDevice, AdbError, Network, _AdbStreamConnection, adb
from adbutils import AdbDevice, AdbError, Network, AdbConnection, adb
from av.codec import CodecContext
from av.error import InvalidDataError

Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(

# Need to destroy
self.alive = False
self.__server_stream: Optional[_AdbStreamConnection] = None
self.__server_stream: Optional[AdbConnection] = None
self.__video_socket: Optional[socket.socket] = None
self.control_socket: Optional[socket.socket] = None
self.control_socket_lock = threading.Lock()
Expand Down Expand Up @@ -134,7 +134,7 @@ def __deploy_server(self) -> None:
f"stay_awake={str(self.stay_awake).lower()}", # Stay awake
"clipboard_autosync=false", # Disable Clipboard autosync
]
self.__server_stream: _AdbStreamConnection = self.device.shell(
self.__server_stream: AdbConnection = self.device.shell(
commands,
stream=True,
)
Expand Down

0 comments on commit a4daad4

Please sign in to comment.