From d4b0525e063f56cc7812fb84808981a13da63327 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 24 Oct 2017 15:23:44 +0200 Subject: [PATCH] Update speechDriver.py --- src/fenrir/core/speechDriver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fenrir/core/speechDriver.py b/src/fenrir/core/speechDriver.py index c465ea08..27bb0ba9 100644 --- a/src/fenrir/core/speechDriver.py +++ b/src/fenrir/core/speechDriver.py @@ -34,7 +34,9 @@ class speechDriver(): return def setCallback(self, callback): - if not callback + if not self._isInitialized: + return + if not callback: return def clear_buffer(self):