mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Revert "Merge pull request #1364 from evandroforks/fix_unclosed_python_file"
This reverts commitc05475a49e
. Revert "possible fix for reported audio issues" This reverts commitf00f7f099f
. Reverting in case https://forums.ankiweb.net/t/2-1-48-release-candidate/13268/10 is related to this change. If the issue persists, we'll know this was not the cause.
This commit is contained in:
parent
466d67ca3a
commit
a2ac197fd7
1 changed files with 0 additions and 10 deletions
|
@ -313,11 +313,6 @@ class SimpleProcessPlayer(Player): # pylint: disable=abstract-method
|
|||
if self._terminate_flag:
|
||||
self._process.terminate()
|
||||
self._process.wait(1)
|
||||
try:
|
||||
if self._process.stdin:
|
||||
self._process.stdin.close()
|
||||
except Exception as e:
|
||||
print("unable to close stdin:", e)
|
||||
self._process = None
|
||||
return
|
||||
|
||||
|
@ -326,11 +321,6 @@ class SimpleProcessPlayer(Player): # pylint: disable=abstract-method
|
|||
self._process.wait(0.1)
|
||||
if self._process.returncode != 0:
|
||||
print(f"player got return code: {self._process.returncode}")
|
||||
try:
|
||||
if self._process.stdin:
|
||||
self._process.stdin.close()
|
||||
except Exception as e:
|
||||
print("unable to close stdin:", e)
|
||||
self._process = None
|
||||
return
|
||||
except subprocess.TimeoutExpired:
|
||||
|
|
Loading…
Reference in a new issue