1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 09:48:20 +08:00

Opt: Stop scrcpy server during wait

This commit is contained in:
LmeSzinc
2023-01-01 02:36:28 +08:00
parent 49606b7868
commit 37e0d70e0d
3 changed files with 15 additions and 3 deletions

View File

@@ -65,6 +65,12 @@ class Device(Screenshot, Control, AppControl, EmulatorManager):
return self.image
def release_during_wait(self):
# Scrcpy server is still sending video stream,
# stop it during wait
if self.config.Emulator_ScreenshotMethod == 'scrcpy':
self._scrcpy_server_stop()
def stuck_record_add(self, button):
self.detect_record.add(str(button))