mirror of
https://github.com/ankitects/anki.git
synced 2026-01-08 03:23:54 -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)
|
self._proc = subprocess.Popen(self.argv, env=self.popenEnv)
|
||||||
if is_win:
|
if is_win:
|
||||||
# Ensure mpv gets terminated if Anki closes abruptly.
|
# 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(
|
extended_info = win32job.QueryInformationJobObject(
|
||||||
self._job, win32job.JobObjectExtendedLimitInformation
|
self._job, win32job.JobObjectExtendedLimitInformation
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue