Final batch of code stability updates before anouther bout of extended testing. Still plenty to go, but making progress.

This commit is contained in:
Storm Dragon
2025-06-20 03:34:50 -04:00
parent 64e79f6945
commit dda84b9905
7 changed files with 48 additions and 15 deletions

View File

@ -62,6 +62,18 @@ class driver(soundDriver):
return
if self.soundType == 'file':
self.proc.kill()
try:
self.proc.wait(timeout=1.0) # Wait for process to finish to prevent zombies
except subprocess.TimeoutExpired:
pass # Process already terminated
except Exception as e:
pass # Handle any other wait errors
if self.soundType == 'frequence':
self.proc.kill()
try:
self.proc.wait(timeout=1.0) # Wait for process to finish to prevent zombies
except subprocess.TimeoutExpired:
pass # Process already terminated
except Exception as e:
pass # Handle any other wait errors
self.soundType = ''