mirror of
https://github.com/ankitects/anki.git
synced 2026-01-05 18:13:56 -05:00
Merge fb7c3ebccf into 8f2144534b
This commit is contained in:
commit
e5515c2bec
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ class MPVBase:
|
|||
self._proc = subprocess.Popen(self.argv, env=self.popenEnv)
|
||||
if is_win:
|
||||
# Ensure mpv gets terminated if Anki closes abruptly.
|
||||
self._job = win32job.CreateJobObject(None, "")
|
||||
self._job = win32job.CreateJobObject(None, f"AnkiJob_{os.getpid()}")
|
||||
extended_info = win32job.QueryInformationJobObject(
|
||||
self._job, win32job.JobObjectExtendedLimitInformation
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue