From a2ef1b4e43d31bf0e8c6fbdfbc3546a29b0c461f Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 21 Sep 2016 16:56:17 +0200 Subject: [PATCH] Update outputManager.py --- src/fenrir-package/core/outputManager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fenrir-package/core/outputManager.py b/src/fenrir-package/core/outputManager.py index 440f9773..54e0b1cc 100644 --- a/src/fenrir-package/core/outputManager.py +++ b/src/fenrir-package/core/outputManager.py @@ -18,8 +18,10 @@ class outputManager(): def shutdown(self, environment): if environment['runtime']['soundDriver']: environment['runtime']['soundDriver'].shutdown(environment) + del environment['runtime']['soundDriver'] if environment['runtime']['speechDriver']: - environment['runtime']['speechDriver'].shutdown(environment) + environment['runtime']['speechDriver'].shutdown(environment) + del environment['runtime']['speechDriver'] def presentText(self, environment, text, interrupt=True, soundIcon = ''): environment['runtime']['debug'].writeDebugOut(environment,"presentText:\nsoundIcon:'"+soundIcon+"'\nText:\n" + text ,debug.debugLevel.INFO)