meeting-noter 0.6.1__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of meeting-noter might be problematic. Click here for more details.

@@ -105,12 +105,17 @@ class MP3Encoder:
105
105
 
106
106
  def finalize(self) -> bytes:
107
107
  """Finalize encoding."""
108
- if self._process is not None and self._process.stdin is not None:
108
+ if self._process is not None:
109
109
  try:
110
- self._process.stdin.close()
110
+ if self._process.stdin is not None:
111
+ self._process.stdin.close()
111
112
  except Exception:
112
113
  pass
113
- self._process.wait()
114
+ try:
115
+ self._process.wait(timeout=5.0)
116
+ except subprocess.TimeoutExpired:
117
+ self._process.kill()
118
+ self._process.wait()
114
119
  self._process = None
115
120
  return b""
116
121