From fbc63d0a541f63e43e11d0843dff98a945426020 Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 18:55:53 +0800 Subject: [PATCH] fix: optimize screenshot handling by removing unnecessary copy --- module/device/method/scrcpy/scrcpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/device/method/scrcpy/scrcpy.py b/module/device/method/scrcpy/scrcpy.py index a4d5afb..209aef2 100644 --- a/module/device/method/scrcpy/scrcpy.py +++ b/module/device/method/scrcpy/scrcpy.py @@ -101,7 +101,7 @@ class Scrcpy(ScrcpyCore, Uiautomator2): if thread is None or not thread.is_alive(): raise ScrcpyError('_scrcpy_stream_loop_thread died') if self._scrcpy_last_frame_time > now: - screenshot = self._scrcpy_last_frame.copy() + screenshot = self._scrcpy_last_frame return screenshot @retry