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

Opt: Release nemu_ipc connection during wait

This commit is contained in:
LmeSzinc
2024-04-08 05:23:14 +08:00
parent 5623f10ee6
commit 65c826a70f
2 changed files with 3 additions and 0 deletions

View File

@@ -459,6 +459,7 @@ class NemuIpc(Platform):
if has_cached_property(self, 'nemu_ipc'):
self.nemu_ipc.disconnect()
del_cached_property(self, 'nemu_ipc')
logger.info('nemu_ipc released')
def screenshot_nemu_ipc(self):
image = self.nemu_ipc.screenshot()