Final batch of code stability updates before anouther bout of extended testing. Still plenty to go, but making progress.
This commit is contained in:
@ -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 = ''
|
||||
|
Reference in New Issue
Block a user